Topic: Saving to multiple tables
I have run into a problem...
I have two tables, events and features. They are related by event.rb (has_many :features) and feature.rb (belongs_to :event). I want to be able to set if an event is a feature.
In the form for 'new event', I have a check-box for feature:
<%= check_box 'feature', 'event_id' %></p>
When I save, if checked (true), I want the event_id to go in the feature table, column event_id.
I hope you'll understand...