Skip to content
This repository

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

Merged
merged 1 commit into from almost 2 years ago

3 participants

Yasith Fernando Don't Add Me To Your Organization a.k.a The Travis Bot Jon Yurek
Yasith Fernando

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

Yasith Fernando 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
Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request fails (merged cc27f49 into 8110922).

Jon Yurek
Collaborator
jyurek commented

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

Jon Yurek jyurek merged commit 786a13f into from
Jon Yurek jyurek closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jul 19, 2012
Yasith Fernando 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
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  README.md
2  README.md
Source Rendered
@@ -109,7 +109,7 @@ In your migrations:
109 109
110 110 In your edit and new views:
111 111
112   - <%= form_for @user, :url => user_path, :html => { :multipart => true } do |form| %>
  112 + <%= form_for @user, :url => users_path, :html => { :multipart => true } do |form| %>
113 113 <%= form.file_field :avatar %>
114 114 <% end %>
115 115

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.