Ruby on Rails Tuesday, March 29, 2011

Frederick Cheung wrote in post #989738:
> On 28 Mar 2011, at 22:52, Peter Laurens <lists@ruby-forum.com> wrote:
>
>> describe "PUT 'new'" do
>> response.should_not be_success
>> :password=>"a_password", :controller=>"sessions", :action=>"new"}
>>
>> So clearly I've made an error here somewhere with my Routes, can someone
>> help me achieve what I'm after (i.e. just a put and delete on a
>> collection, which calls create and destroy on the controller?).
>>
>
> You've routed put to the create action but in your spec you're calling
> the new action - the 2 need to match up.
>
> Fred

This is great, thanks to Phil as well!

- N

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment