Skip to content
Browse files

When using the form_for helper in the example, we need to use users_p…

…ath and not user_path (which will point to the show action instead of the create action).
  • Loading branch information...
1 parent 8110922 commit cc27f492152adfb27089714acf345e8471b07197 @thekindofme thekindofme committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -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 %>

0 comments on commit cc27f49

Please sign in to comment.
Something went wrong with that request. Please try again.