# Rest?

**URL:** <https://www.ruby-forum.com/t/rest/114047>\
**Category:** Rails\
**Created:** [September 7, 2007, 10:55am UTC](https://www.ruby-forum.com/t/rest/114047 "2007-09-07T10:55:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieterjongsma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Post date:** [September 7, 2007, 10:55am UTC](https://www.ruby-forum.com/t/rest/114047/1 "2007-09-07T10:55:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pieterjongsma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Post date:** [September 7, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/rest/114047/2 "2007-09-07T20:53:35Z")

</div>

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](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![pieterjongsma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Post date:** [September 7, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/rest/114047/3 "2007-09-07T21:53:40Z")

</div>

I always keep TopFunky’s REST cheat sheet handy:

> **[REST-cheatsheet.pdf](https://topfunky.com/clients/peepcode/REST-cheatsheet.pdf)**
>
> 78.73 KB

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pieterjongsma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/977dab/32.png) [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Post date:** [September 7, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/rest/114047/4 "2007-09-07T22:18:56Z")

</div>

> There is no update\_event\_path. You do an update by a PUT on event\_path

That’s what I needed, thank you!
