Hello Richard,<br><br>Thanks so much for your help. I&#39;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!&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_helper.rb:94:in `convert_options_to_javascript!&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:69:in `link_to&#39;<br>
/Users/macmini/Projects/Git/myapp/app/views/main/index.rhtml:18:in `_run_rhtml_47app47views47main47index46rhtml&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:325:in `send&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:325:in `compile_and_render_template&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:812:in `render_file&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:717:in `render_with_no_layout&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/layout.rb:247:in `render_without_benchmark&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render_without_trace_View____determine_metric_path__Rendering&#39;<br>/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render_without_trace_View____determine_metric_path__Rendering&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:118:in `render&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:117:in `render&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:1102:in `perform_action_without_filters&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue&#39;<br>
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action_without_newrelic_trace&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:63:in `perform_action&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:52:in `perform_action&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/method_tracer.rb:38:in `trace_method_execution&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/action_controller.rb:46:in `perform_action&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch_without_newrelic&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/plugins/newrelic_rpm/lib/newrelic/agent/instrumentation/dispatcher.rb:73:in `dispatch&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each&#39;<br>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run&#39;<br>/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run&#39;<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&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load&#39;<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&#39;<br>/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in&#39;<br>
/Users/macmini/Projects/Git/myapp/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require&#39;<br>/Users/macmini/Projects/Git/myapp/vendor/rails/railties/lib/commands/server.rb:39<br>script/server:3:in `require&#39;<br>
script/server:3<br><br><br>Index.rhtml:<br><br>&lt;% unless logged_in? %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;div&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;%= render :partial =&gt; &#39;explain&#39; %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&lt;% end %&gt;<br>&lt;div id=&quot;colOne&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;%= link_to image_tag(&quot;blog_small_1.jpg&quot;, :alt =&gt; &quot;myapp Blog&quot;), :action =&gt; &quot;myapp&quot;, :controller =&gt; &quot;blogs&quot; %&gt;<br>&lt;/div&gt;<br>&lt;div id=&quot;colTwo&quot;&gt;<br>
&nbsp; &lt;div class=&quot;section_title&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span style=&quot;float: right&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;%= link_to image_tag(&quot;postobj.png&quot;, :alt =&gt; &quot;Submit new product&quot;, :class =&gt; &#39;post&#39;), :action =&gt; &quot;new&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :controller =&gt; &quot;products&quot; %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp;&nbsp;&nbsp; &lt;%= image_tag(&quot;7151238_6.png&quot;, :alt =&gt; &#39; &#39;, :style =&gt; &#39;padding: 3px 3px 0 0;&#39;) %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span style = &quot;vertical-align: top&quot;&gt;Latest products&lt;/span&gt;<br>
&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;%= link_to &quot;(view all)&quot;, {:controller =&gt; &quot;products&quot;, :action =&gt; &quot;index&quot;}, :style =&gt; &quot;float: right;&quot;) %&gt;&lt;br/&gt;<br>&nbsp; &lt;%= render :partial =&gt; &#39;product&#39;, :collection =&gt; @products %&gt;<br>
&nbsp; &lt;br clear=&quot;all&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br/&gt;<br>&nbsp; &lt;div class=&quot;section_title&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span style = &quot;vertical-align: top&quot;&gt;Newest&lt;/span&gt;<br>&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp; &lt;%= render :partial =&gt; &#39;users/people&#39; %&gt;<br>
&lt;/div&gt;<br>&lt;div id=&quot;colThree&quot;&gt;<br>&nbsp; &lt;div class=&quot;section_title&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span style=&quot;float: right&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;%= link_to image_tag(&quot;postobj.png&quot;, :alt =&gt; &quot;Submit new event&quot;, :class =&gt; &#39;post&#39;), :action =&gt; &quot;new&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :controller =&gt; &quot;events&quot; %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/span&gt;<br>&nbsp; &nbsp;&nbsp;&nbsp; &lt;%= image_tag(&quot;7151238_3.png&quot;, :alt =&gt; &#39; &#39;, :style =&gt; &#39;padding: 3px 3px 0 0;&#39;) %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;span style = &quot;vertical-align: top&quot;&gt;New events&lt;/span&gt;<br>
&nbsp; &lt;/div&gt;<br>&nbsp; &lt;div id=&quot;eventlist&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;%= link_to &#39;(view all)&#39;, {:controller =&gt; &#39;events&#39;, :action =&gt; &#39;index&#39;}, :style =&gt; &#39;float: right;&#39; %&gt;&lt;br/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;%= render :partial =&gt; &#39;event&#39;, :collection =&gt; @events %&gt;<br>&nbsp; &lt;/div&gt;<br>&nbsp; &lt;br clear=&quot;all&quot;/&gt;<br>&lt;/div&gt;<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">&lt;<a href="mailto:jordanr@cs.washington.edu">jordanr@cs.washington.edu</a>&gt;</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&#39;re hitting localhost, everything Rails should work.<br>
<br>
What error exactly do you get? &nbsp;I tried your code but must&#39;ve done it differently. &nbsp;I have a view:<br>
<br>
# index.html.erb<br>
&lt;%= link_to &quot;(view all)&quot;, {:controller =&gt; &quot;products&quot;, :action =&gt; &quot;index&quot;}, :style =&gt; &quot;float: right;&quot; %&gt;<br>
<br>
I go to my localhost:port, and the link_to floats to the right. This should completely bypass Facebooker. &nbsp;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&#39;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&#39;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!&#39;<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!&#39;<br>
.../vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:69:in<br>
`link_to&#39;<br>
.../app/views/main/index.rhtml:18:in<br>
`_run_rhtml_47app47views47main47index46rhtml&#39;<br>
<br>
The line in the view template it&#39;s talking about is: &lt;%= link_to &quot;(view<br>
all)&quot;, {:controller =&gt; &quot;products&quot;, :action =&gt; &quot;index&quot;}, :style =&gt; <br>
</blockquote>
&quot;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;&quot;) %&gt;<br>
<br>
When I remove the style hash it&#39;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>