activerecord - Retrieving field params field in rails -


i have been trying analyze problem closely still yet find way approach it. (hope explanation enough)

so have 3 models [user, status , milestone] status model belongs user model milestone model belongs status model , user model through status model

okay want tie each milestone model doing (milestone.build_status, pretty easy cli, have tested , tried it, , works expected.)

so big issue having on web page. displaying statuses (i have handled cases when user enter status) user corresponding text field can enter milestone, when post can params of text field supplied (duh! isnt obvious).

my question possible approaches can use figure particular status user entered milestone for.

i think may looking active record nested attributes

this allow forms object of user model accept input associated status and/or milestone objects creating , updating each associated records in 1 transaction.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -