Displaying 1 result from an estimated 1 matches for "count43".
Did you mean:
count3
2007 Feb 24
2
RESTful PUT and button_to
...:counter => { :count => @counter.count + 1 } ),
:method => :put %>
But that''s wrong for two reasons. First, the counter_path helper
flattens the nested hash, so the for a counter with id 1 and
count==42, the URL comes out like "/counters/1?count43" - which won''t
be parsed correctly into the params hash by the "update" action.
Second, and more importantly, it''s not truly RESTful, because it''s
PUTing to "/counters/1?count43", not "/counters/1".
As far as I can tell what I really n...