Hello Richard,<br><br>Thanks so much for your help. I'm using Rails 1.2.5. Here are the trace and index.rhtml:<br><br><br>Full trace:<br><br>/Users/macmini/Projects/Git/myapp/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in `convert_options_to_javascript_without_facebooker!'<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in `convert_options_to_javascript!'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:69:in `link_to'<br>
/Users/macmini/Projects/Git/myapp/app/views/main/index.rhtml:18:in `_run_rhtml_47app47views47main47index46rhtml'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:717:in `render_with_no_layout'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render_without_trace_View____determine_metric_path__Rendering'<br>/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render_without_trace_View____determine_metric_path__Rendering'<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:118:in `render'<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution'<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:117:in `render'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:1102:in `perform_action_without_filters'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<br>
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action_without_newrelic_trace'<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:63:in `perform_action'<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution'<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:52:in `perform_action'<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution'<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:46:in `perform_action'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch_without_newrelic'<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/dispatcher.rb:73:in `dispatch'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/railties/lib/commands/servers/mongrel.rb:60<br>/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'<br>/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'<br>/Users/macmini/Projects/Git/myapp/vendor/rails/railties/lib/commands/server.rb:39<br>script/server:3:in `require'<br>
script/server:3<br><br><br>Index.rhtml:<br><br><% unless logged_in? %><br> <div><br> <%= render :partial => 'explain' %><br> </div><br><% end %><br><div id="colOne"><br>
<%= link_to image_tag("blog_small_1.jpg", :alt => "myapp Blog"), :action => "myapp", :controller => "blogs" %><br></div><br><div id="colTwo"><br>
<div class="section_title"><br> <span style="float: right"><br> <%= link_to image_tag("postobj.png", :alt => "Submit new product", :class => 'post'), :action => "new",<br>
:controller => "products" %><br> </span><br> <%= image_tag("7151238_6.png", :alt => ' ', :style => 'padding: 3px 3px 0 0;') %><br> <span style = "vertical-align: top">Latest products</span><br>
</div><br> <%= link_to "(view all)", {:controller => "products", :action => "index"}, :style => "float: right;") %><br/><br> <%= render :partial => 'product', :collection => @products %><br>
<br clear="all"/><br> <br/><br> <div class="section_title"><br> <span style = "vertical-align: top">Newest</span><br> </div><br> <%= render :partial => 'users/people' %><br>
</div><br><div id="colThree"><br> <div class="section_title"><br> <span style="float: right"><br> <%= link_to image_tag("postobj.png", :alt => "Submit new event", :class => 'post'), :action => "new",<br>
:controller => "events" %><br> </span><br> <%= image_tag("7151238_3.png", :alt => ' ', :style => 'padding: 3px 3px 0 0;') %><br> <span style = "vertical-align: top">New events</span><br>
</div><br> <div id="eventlist"><br> <%= link_to '(view all)', {:controller => 'events', :action => 'index'}, :style => 'float: right;' %><br/><br>
<%= render :partial => 'event', :collection => @events %><br> </div><br> <br clear="all"/><br></div><br><blockquote style="margin: 1.5em 0pt;"></blockquote><br clear="all">
- Adeel<br><br>
<br><br><div class="gmail_quote">On Thu, Jan 22, 2009 at 8:37 AM, Richard Jordan <span dir="ltr"><<a href="mailto:jordanr@cs.washington.edu">jordanr@cs.washington.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Adeel,<br>
<br>
No, if you're hitting localhost, everything Rails should work.<br>
<br>
What error exactly do you get? I tried your code but must've done it differently. I have a view:<br>
<br>
# index.html.erb<br>
<%= link_to "(view all)", {:controller => "products", :action => "index"}, :style => "float: right;" %><br>
<br>
I go to my localhost:port, and the link_to floats to the right. This should completely bypass Facebooker. It does for me.<br>
<br>
I can nail down the problem if you post your (1) full error trace and (2) exact code for view.html.erb.<br>
<br>
And what Rails version? (though it shouldn't matter).<br>
<br>
Sincerely,<br><font color="#888888">
Richard</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Thu, 22 Jan 2009, Adeel Ahmad wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've got Facebooker installed on my app but as soon as I start my app <br>
</blockquote>
and go<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
to localhost:3000 I get the following error:<br>
<br>
<br>
</blockquote>
.../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
`convert_options_to_javascript_without_facebooker!'<br>
<br>
</blockquote>
.../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
`convert_options_to_javascript!'<br>
.../vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:69:in<br>
`link_to'<br>
.../app/views/main/index.rhtml:18:in<br>
`_run_rhtml_47app47views47main47index46rhtml'<br>
<br>
The line in the view template it's talking about is: <%= link_to "(view<br>
all)", {:controller => "products", :action => "index"}, :style => <br>
</blockquote>
"float:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
right;") %><br>
<br>
When I remove the style hash it's fine with this line but then it <br>
</blockquote>
catches an<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
error on the very next link_to that has an html_option.<br>
<br>
Can someone explain why this is happening, and whether html_option is <br>
</blockquote>
really<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
incompatible with facebooker?<br>
<br>
<br>
-a<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>