diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-30 20:59:27 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-12-30 21:02:46 -0300 |
commit | 04852b875ec5c2bd5e5f8bf525b7be60682d0c27 (patch) | |
tree | 134de2742be036a222ca0db5de68a2494fa47736 /actionpack/lib/action_dispatch.rb | |
parent | a4d5e835608d951cf6c306ccc9aed06896e07c15 (diff) | |
download | rails-04852b875ec5c2bd5e5f8bf525b7be60682d0c27.tar.gz rails-04852b875ec5c2bd5e5f8bf525b7be60682d0c27.tar.bz2 rails-04852b875ec5c2bd5e5f8bf525b7be60682d0c27.zip |
Fix error message when trying to create an associated record
This error only happens when the foreign key is missing.
Before this fix the following exception was being raised:
NoMethodError: undefined method `val' for #<Arel::Nodes::BindParam:0x007fc64d19c218>
Now the message is:
ActiveRecord::UnknownAttributeError: unknown attribute 'foreign_key' for Model.
Diffstat (limited to 'actionpack/lib/action_dispatch.rb')
0 files changed, 0 insertions, 0 deletions