date_time_attribute
date_time_attribute copied to clipboard
Allows to assign date, time and time zone attributes separately for a DateTime attribute.
Because of using Railtie gem tries to connect db too early causing error: ``` ActiveRecord::NoDatabaseError: FATAL: database "xxxxxxx_development" does not exist /usr/local/bundle/bundler/gems/rails-bf1494a1018a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:50:in `rescue in postgresql_connection' /usr/local/bundle/bundler/gems/rails-bf1494a1018a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:33:in `postgresql_connection' /usr/local/bundle/bundler/gems/rails-bf1494a1018a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:811:in `new_connection' /usr/local/bundle/bundler/gems/rails-bf1494a1018a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:856:in...
Newish to Rails, followed the docs but getting the following error: ``` 4 error(s) on assignment of multiparameter attributes [error on assignment [11, 8, 2014] to start_date (undefined method `klass'...
Using `date_time_attribute` with a form with a date and time text field, I find that entering an invalid value (e.g. "foo" as the time) either throws an exception (default parser)...
Ran into this interesting issue today where if you're using the Chronic parser as described in the readme, your accessors will result in times changing each time they are called....