Rest?

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.

On Sep 7, 2007, at 4:55 AM, Pieter J. wrote:

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 B. http://agileconsultingllc.com
[email protected]

I always keep TopFunky’s REST cheat sheet handy:

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 J. [email protected]

There is no update_event_path. You do an update by a PUT on event_path

That’s what I needed, thank you!