Commit cc27f492 by Yasith Fernando

When using the form_for helper in the example, we need to use users_path and not…

When using the form_for helper in the example, we need to use users_path and not user_path (which will point to the show action instead of the create action).
parent 8110922e
......@@ -109,7 +109,7 @@ In your migrations:
In your edit and new views:
<%= form_for @user, :url => user_path, :html => { :multipart => true } do |form| %>
<%= form_for @user, :url => users_path, :html => { :multipart => true } do |form| %>
<%= form.file_field :avatar %>
<% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment