[Facebooker-talk] convert_options_to_javascript_without_facebooker breaking link_to?
Richard Jordan
jordanr at cs.washington.edu
Thu Jan 22 11:37:29 EST 2009
Dear Adeel,
No, if you're hitting localhost, everything Rails should work.
What error exactly do you get? I tried your code but must've done it
differently. I have a view:
# index.html.erb
<%= link_to "(view all)", {:controller => "products", :action => "index"},
:style => "float: right;" %>
I go to my localhost:port, and the link_to floats to the right. This
should completely bypass Facebooker. It does for me.
I can nail down the problem if you post your (1) full error trace and (2)
exact code for view.html.erb.
And what Rails version? (though it shouldn't matter).
Sincerely,
Richard
On Thu, 22 Jan 2009, Adeel Ahmad wrote:
> I've got Facebooker installed on my app but as soon as I start my app
and go
> to localhost:3000 I get the following error:
>
>
.../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in
> `convert_options_to_javascript_without_facebooker!'
>
.../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in
> `convert_options_to_javascript!'
> .../vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:69:in
> `link_to'
> .../app/views/main/index.rhtml:18:in
> `_run_rhtml_47app47views47main47index46rhtml'
>
> The line in the view template it's talking about is: <%= link_to "(view
> all)", {:controller => "products", :action => "index"}, :style =>
"float:
> right;") %>
>
> When I remove the style hash it's fine with this line but then it
catches an
> error on the very next link_to that has an html_option.
>
> Can someone explain why this is happening, and whether html_option is
really
> incompatible with facebooker?
>
>
> -a
>
More information about the Facebooker-talk
mailing list