mardi 9 février 2016

Ruby 1.9.3, Rails 3.2.22 and sql-server 2008, Unknown bind columns. We can account for this

I am using ruby 1.9.3, rails 3.2.22 and sql sserver 2008, previously we are working on sql server 2005 and moved to 2008 when running rails server its showing error : RuntimeError at / Unknown bind columns. We can account for this.

at this line @visit = Visit.find(session[:visit_id])

sql connection was established , when I run rake db:migrate. schema.rb was generated with only tables without any fields in them.

when I checked Model.columns in ruby console it returns empty when i connected back to sql server 2005 it returns columns.

Please help me to solve this error

thanks in advance rghrm09

Aucun commentaire:

Enregistrer un commentaire