I have a model called 'users' that I changed to 'people' in the url.
resources :users, :path => "people"
Everything works fine except when creating a new user I get a routing error and it redirects to '/users', instead of creating the user and going to '/people/:id'.
No route matches [POST] "/users"
If I take
:path => "people"
out of the routes it works fine.
The form looks like:
<%= simple_form_for(@user) do |f| %>
and here is the controlller:
def create @user = User.create(user_params) if @user.save redirect_to @user else redirect_to root_path end end