Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

When using the form_for helper in the example, we need to use users_path... #965

Merged
merged 1 commit into from

3 participants

@thekindofme

... and not user_path (which will point to the show action instead of the create action).

@thekindofme thekindofme 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).
cc27f49
@travisbot

This pull request fails (merged cc27f49 into 8110922).

@jyurek
Admin

Actually, I'm pretty sure neither need to be specified anymore. But in the case where we do, you're quite right. Thanks!

@jyurek jyurek merged commit 786a13f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 19, 2012
  1. @thekindofme

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

    thekindofme authored
    …ath and not user_path (which will point to the show action instead of the create action).
This page is out of date. Refresh to see the latest.
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 %>
Something went wrong with that request. Please try again.