On May 20, 2010, at 5:45 PM, Matt Royer wrote:
Rob Biedenharn wrote:
Hi Rob,
Thanks for the quick response!
I'm sorry, I'm still relatively new at this Rails stuff. I have gone
through a couple of books, but it's hard to tie it all together. :)
When you put the following:
:id => order.id
Where should I enter that? Within the link_to_remote somewhere?
Yes, right where I put it:
<td><%= link_to_remote "Show", :url => {:controller =>
'orders', :action => 'show',
:id => order.id
}, :update => "order_div", :method => 'get'
%></td>
Also, I would like to know the following. Not sure where I would enter
that path in the link_to_remote:
But you could also use a named route for the url. Something like
order_path(order)
Thanks again! I need all the help I can get. :)
<td><%= link_to_remote("Show", :url => order_path(order),
:update => "order_div",
:method => 'get') %></td>
-Rob
Rob Biedenharn
http://agileconsultingllc.com
r...@agileconsultingllc.com
http://gaslightsoftware.com
r...@gaslightsoftware.com
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.