Need help with achieving a certain functionality (screenshots attached)

A user has_many projects. A project belongs_to a user. I want to create a edit_profile page where the user can edit their details as well as add/edit/remove their projects.

See attached screenshot. What is the best approach to achieve this result? I’ve been trying to use nested forms and am using accepts_nested_attributes_for :projects in user.rb. But it’s not quite working how I’d like it to.

I’m wondering if there’s some obvious approach that I’m missing?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.