Re: [Rails] form.view.erb containing model related and non-model related fields.

2015-06-28 Thread Henry Lawson
Hi, Consider binding your form to an ActiveModel not an ActiveRecord class. In your ActiveModel, you can add in the extra fields that you don't want/have in your ActiveRecord class. Using ActiveModel will also let you follow the same idioms in ActiveRecord, such as validation. Thanks, Henry On

Re: [Rails] Re: ActiveRecord and consistent timestamps in transactions

2015-05-27 Thread Henry Lawson
Hello, If I am understanding correctly, you need some mechanism to correlate several models together, you are hoping to use the created_at and modified_at timestamps provided by active record, to match the models using a timestamp. I see the created_at and modified_at timestamp's as database