A toolkit for building modeling frameworks like Active Record.
With the recent upgrade to Rails 4, updating attributes using code resembling the below does not work, I get a ActiveModel::…
ruby-on-rails ruby-on-rails-4 activemodel attr-accessible strong-parametersIn my app; when I submit form, I get this error: LoadError at /questions Unable to autoload constant Message, expected /…
ruby-on-rails activemodel rails-models mailboxerThe #new_record? function determines if a record has been saved. But it is always false in the after_save …
ruby-on-rails activerecord activemodelI would like to know if it is possible to get the types (as known by AR - eg in …
ruby-on-rails ruby activerecord activemodelI have a Rails 3.0.9 app that, once it is deployed, suffers from a bunch of ActiveModel::MissingAttributeErrors that crop up …
ruby-on-rails ruby activemodelI have the following models: User (id, name, network_id) Network(id, title) What kind of Rails model assoc do …
ruby-on-rails ruby-on-rails-3 activerecord activemodelIf I try to execute the following code: hassle = rota.hassles.create(:sender => user1, :receiver => user2, :type => "…
ruby-on-rails activemodelI've configured my database.yml to point to my existing mysql database how can I generate models from it? rails …
ruby ruby-on-rails-3 activemodelLet's say you're implementing a REST API in Rails. When serving a collection, you might want to only include a …
ruby-on-rails-3 json rest activemodelI have a callback of a model that needs to create a dependent object based on another field entered in …
ruby-on-rails ruby-on-rails-3 activerecord ruby-on-rails-3.2 activemodel