Hi,
i tried my first sinatra application with ruby 1.9.2 and ActiveRecord
2.3.9
and the massassignment doesn’t work. New Database entry is nil for all
parameters.
If i use ActiveRecord 2.3.5 everything works fine.
Anybody an idea if this is an bug?
Hi,
i tried my first sinatra application with ruby 1.9.2 and ActiveRecord
2.3.9
and the massassignment doesn’t work. New Database entry is nil for all
parameters.
If i use ActiveRecord 2.3.5 everything works fine.
Anybody an idea if this is an bug?
ActiveRecord is a component of Rails; I suggest you ask on a Rails forum
if it’s a known issue.
IIWM, I’d redo this as a standalone test at the irb prompt (or
script/console)
#ActiveRecord::Base.establish_connection(…) #class Tag < ActiveRecord::Base; … end
Tag.create(…)
Tag.find(:all)
Then it’s explicit that this is an issue with ActiveRecord, and takes
rspec and sinatra out of the picture. Or alternatively, if that works as
expected, you can start looking elsewhere for the issue.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.