We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that I can't update date fields in the parent class:
if @contract.update(contract_params) ...
if @contract.update(contract_params)
gets me
*TypeError in ContractsController#update_contract * can't cast Hash to date
StackTrace:
activerecord (4.2.4) lib/active_record/connection_adapters/abstract/quoting.rb:34:in `rescue in type_cast' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/quoting.rb:23:in `type_cast' activerecord (4.2.4) lib/active_record/connection_adapters/sqlite3_adapter.rb:290:in `block in exec_query' activerecord (4.2.4) lib/active_record/connection_adapters/sqlite3_adapter.rb:289:in `map' activerecord (4.2.4) lib/active_record/connection_adapters/sqlite3_adapter.rb:289:in `exec_query' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:76:in `exec_insert' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' activerecord (4.2.4) lib/active_record/relation.rb:64:in `insert' activerecord (4.2.4) lib/active_record/persistence.rb:524:in `_create_record' ...
Things work fine if I
Any ideas?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems that I can't update date fields in the parent class:
if @contract.update(contract_params)
...gets me
StackTrace:
Things work fine if I
Any ideas?
The text was updated successfully, but these errors were encountered: