Ruby on Rails Monday, April 3, 2017

I'm using nested resources users, addresses so in my routes I have:

resources :users do
  resources :addresses
resources :users
resources :adresses

In my controller create action if succeeds there's a redirect but what should i render if it fails validation? default is render :new i was thinking render 'users/addresses/new' but that fails and it renders /addresses/new

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment