link_to_remote(item.item_num, {:url => {:action => ''show'', :params => params.merge({:item_num => item.item_num} ) }, :update => ''item_show'' } ) The resulting link updates item_show using /items/index/ item_num...whereas it should using /items/show/item_num. I''ve used link_to_remote a hundred times before this. I can''t figure out any difference between a previous usage and this new project other than that the database is a legacy database. The most frustrating part is that link_to works just fine. Thanks in advance for any help, Tony Pitale++ --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 30, 8:00 pm, thanatos <tpitale...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> link_to_remote(item.item_num, {:url => {:action => ''show'', :params => > params.merge({:item_num => item.item_num} ) }, :update => > ''item_show'' } ) >Have you got a few too many { there ? How about link_to_remote item.item_num, :url => {:action => ''show'', :item_num => item.item_num}, :update => ''item_show'' The *_remote function don''t have that weird thing where you have a hash of action parameters followed by a second hash of html options. Fred> The resulting link updates item_show using /items/index/ > item_num...whereas it should using /items/show/item_num. > > I''ve used link_to_remote a hundred times before this. I can''t figure > out any difference between a previous usage and this new project other > than that the database is a legacy database. > > The most frustrating part is that link_to works just fine. > > Thanks in advance for any help, > Tony Pitale++--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanatos wrote:> link_to_remote(item.item_num, {:url => {:action => ''show'', :params => > params.merge({:item_num => item.item_num} ) }, :update => > ''item_show'' } ) > > The resulting link updates item_show using /items/index/ > item_num...whereas it should using /items/show/item_num. > > I''ve used link_to_remote a hundred times before this. I can''t figure > out any difference between a previous usage and this new project other > than that the database is a legacy database. > > The most frustrating part is that link_to works just fine. > > Thanks in advance for any help, > Tony Pitale++is there an extra '' { '' in there? what is the error you get? if any... -- Posted via http://www.ruby-forum.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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---