anjlab / anjlab-widgets

UI Widgets on top of anjlab-bootstrap-rails
MIT License
54 stars 15 forks source link

send message instead of using attributes hash #17

Closed barelyknown closed 11 years ago

barelyknown commented 11 years ago

I have a form where a scheduled_for_local is used in the form but it isn't an attribute in the database on the model. I translate from the local time to UTC before persisting.

Anyways, using the [] method caused an error. I switched to send the attribute message to the object instead.