In my form I have a select menu for US States. I would like to include the capitals of those states as a hidden parameter when passed to the model. Of course, the capital should match the state chosen.
I know I can set a attr_accessor :state_capitals in the model, or even make a migration to update the table and add the column, but I'm having some trouble creating this in the view. Is it ok for the view to have some logic in this case? I apologize in advance if this is a frequently asked question, I'm fairly new to programming and couldn't find the right terminology for my search queries. Thank you in advance. -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

