[Rails] Re: Forcing link_to 'put'

2010-04-18 Thread MarkB
The answer to seemingly broken rails behavior is usually "duh..I should have realized that!" My link_to syntax was fine. The HTTP put was successfully finding the correct controller method, but that method was performing a redirect that was failing (in a rather opaque way to me) because in this p

Re: [Rails] Re: Forcing link_to 'put'

2010-04-17 Thread Colin Law
On 17 April 2010 07:16, MarkB wrote: > Unfortunately that does not work.  Same error, as if link_to is > ignoring the :method argument and defaulting to get/show. Have you checked the html generated by the link, and looked in the log to see if anything useful there? Colin > > > On Apr 15, 4:22 

[Rails] Re: Forcing link_to 'put'

2010-04-16 Thread MarkB
Unfortunately that does not work. Same error, as if link_to is ignoring the :method argument and defaulting to get/show. On Apr 15, 4:22 am, Heinz Strunk wrote: > What happens if you remove ":action => :update"? Shouldn't be necessary > cause put automatically calls the update method. > -- > Po

[Rails] Re: Forcing link_to 'put'

2010-04-15 Thread Heinz Strunk
What happens if you remove ":action => :update"? Shouldn't be necessary cause put automatically calls the update method. -- 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, se