Nested form


I’ve got a problem with the creation of a nested form for this

I’ve got 3 models as follow

-> has_many :authorships

-> belong_to :author
-> belong_to :game


belong_to :authorship

In my form the user can enter the author name when creating a new
The application automatically create them if they don’t exist but all
is hand made. i’musing a find_or_create under the wood
i would like to use the nested from feature from rails 2.3 for this
form but I cannot figure how to use it to create a new author if it
doesn’t exist or find the corect author if it exist.

I somebody got some ideas for helping me, I appreciate much.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs