[rspec-users] Unable to post to an update action in a controller spec

Fernando Perez lists at ruby-forum.com
Thu May 14 06:23:34 EDT 2009


> put :update, :item => 1 etc.
> 
I tried that but didn't work. I managed to get it working by simply 
doing:

post :update, {:id => 'dummy', :item => {'1' => ...}}

For some reason, I previously tried with :id => 'update' but Rails 
didn't like it.

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list