Hi,
After using rails for a while, I’ve decided to ‘sex-up’ my apps using
the built in AJAX support.
I seem to have struck a problem which is probably my own oversight.
When I make a call to link_to_remote, I want to send an :id to the
action. When this is handled by a stadard link_to call, it’s fine.
Using link_to_remote causes the error: ‘You have a nil object when you
didn’t expect it!’.
In summary:
<%= link_to ‘Capabilities’, :action => ‘capabilities’, :id => @mything
%>
…is OK, but…
<%= link_to_remote(“Capabilities”,
:update => ‘mydiv’,
:url => { :action => ‘capabilities’, :id => @mything }) %>
…does not.
Maybe i’m just too old and my head is wired for Web 1.0
Thanks for any help anyone can give.