Hi, I''m trying to get a hang of REST, but I can''t seem to figure the following out by myself. The problem is that all paths are working fine, such as event_path, new_event_path etc. But update_event_path is not working. I guess there is some other way, but I have no idea which. So, what path should I use in my update form? I hope you understand what I mean... If not, please say so. Thanks in advance, pieter. -- 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 -~----------~----~----~----~------~----~------~--~---
On Sep 7, 2007, at 4:55 AM, Pieter Jongsma wrote:> Hi, > > I''m trying to get a hang of REST, but I can''t seem to figure the > following out by myself. > > The problem is that all paths are working fine, such as event_path, > new_event_path etc. > But update_event_path is not working. I guess there is some other way, > but I have no idea which. > So, what path should I use in my update form? > > I hope you understand what I mean... If not, please say so. > > Thanks in advance, > pieter.There is no update_event_path. You do an update by a PUT on event_path You probably need something like this: <% form_for(:event, :url => event_path(@event), :html => { :method => :put }) do |f| %> -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I always keep TopFunky''s REST cheat sheet handy: http://topfunky.com/clients/peepcode/REST-cheatsheet.pdf If you haven''t done so already you should check out the peepcode REST screencast I highly recommend it. (Just a satisfied customer, not affiliated with PeepCode in anyway) On Sep 7, 4:55 am, Pieter Jongsma <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > > I''m trying to get a hang of REST, but I can''t seem to figure the > following out by myself. > > The problem is that all paths are working fine, such as event_path, > new_event_path etc. > But update_event_path is not working. I guess there is some other way, > but I have no idea which. > So, what path should I use in my update form? > > I hope you understand what I mean... If not, please say so. > > Thanks in advance, > pieter. > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
> There is no update_event_path. You do an update by a PUT on event_pathThat''s what I needed, thank you! -- 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 -~----------~----~----~----~------~----~------~--~---