Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Matt S's Profile

GitHub User: mswieboda

Comments by Matt S


@SeanO looks like that route doesn't exist, if you're trying to #create a user, try posting to the users_path in your form, or use form_for(user_obj) to automatically pick the route like:

<%= form_for(@user) do |f| %>

I'd suggest the above, as long as you're creating @user = in the users#new controller action, so it knows to route to POST /users. The long way to write it is:

<%= form_for @user, as: :post, url: users_path %>