rails-sqlserver/activerecord-sqlserver-adapter — Issue #140: .find() method not working
Author: steveo7
Created: 2011-10-31 13:18:13+00:00
State: open

Thanks for all your work on this adapter. I am starting a new project using Rails 3.1.1 after prototyping with Rails 3.0.7 and ran into a problem with the .find method. This is against a legacy schema using views.

I am finding that the Activerecord .find method is not working on a view with Rails 3.1.1 and activerecord-sqlserver-adapter 3.1.3. It works okay on the same view with Rails 3.0.7 and activerecord-sqlserver-adapter 3.0.14.

Rails 3.1.1
If run this from the console;
fund = Find.find('A105')
It returns an error "RuntimeError: Unknown bind columns. We can account for this."
If I instead use;
fund = Find.find_by_id('A105') it works ok.