Hi Guys, I'm playing with nested attributes (accepts_nested_attributes_for). There are two models:
Location Event (Fields: title, at_date, is_booked, ...) Locations can have multiple events, and the events can be added and removed dynamically in the location-form with javascript (based on this tutorial: http://www.railsforum.com/viewtopic.php?id=28447&p=1) The field is_booked should be true or false, depending on several conditions (f.e. at_date has a specific value). Is there any way to change these values after update_attributes() or should I solve this with javascript in the view? Is there any other way? Is it possible/advisable to change the params()-array? Thanks a lot! -- 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 -~----------~----~----~----~------~----~------~--~---

