= simple_form_for @user do |f|
To make it work I had to change it to this:
= simple_form_for :user, url: user_path(@user) do |f|resources :owners, path: 'users', controller: 'users'
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-NUfQAxSGDMJ.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/zS500RJNLR4J.
To make it work I had to change it to this:
= simple_form_for :user, url: user_path(@user) do |f|
To work with link helpers, I added this as resource:resources :owners, path: 'users', controller: 'users'
= simple_form_for @user do |f|OK, thanks. But why would I do this instead of just adding the extra resource?resources :usersresources :owners, controller: 'users', path: 'users'