Simply Restful: Can't create update forum

Views

<% form_for :user, @user, :url => { :action => “update” }, :method =>
:put do |f| %>

<% end %>

Outputs

...

It sends post instead of put. I don’t see any hackish hidden put stuff
in the form either.

On 6/29/06, Josh P. [email protected] wrote:

...

It sends post instead of put. I don’t see any hackish hidden put stuff
in the form either.

Put this in your form somewhere:
<%= hidden_field_tag ‘_method’, ‘put’ %>

That’s the Rails workaround for the fact that browsers can’t send PUT
requests.

Wilson B. wrote:

That’s the Rails workaround for the fact that browsers can’t send PUT
requests.

Thanks. I thought that was supposed to be automatically inserted.