Displaying 5 results from an estimated 5 matches for "protected_attribut".
Did you mean:
protected_attributes
2008 Jul 10
0
User.protected_attributes returning empty Set instead of nil -- causing activerecord/lib/base:2307 to raise
.../lib/active_record/
base.rb:2114:in `attributes=''
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
base.rb:2033:in `update_attributes''
/app/controllers/accounts_controller.rb:50:in `update''
The model doesnt use attr_protected. It turns out that
User.protected_attributes is returning an empty set instead of nil,
which is what remove_attributes_protected_from_mass_assignment wants.
The real fun part is that this only happens in tests (rake
test:functional or ruby ./user_controller_test.rb). And for a real
kick in the crotch, I''ve seen it in development...
2014 Feb 17
0
Need help -FATAL: database "catarse_development" does not exist
...ms/ruby-1.9.3-p484/gems/activerecord-4.0.2/lib/active_record/attribute_methods/primary_key.rb:77:in
`reset_primary_key'
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.2/lib/active_record/attribute_methods/primary_key.rb:65:in
`primary_key'
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/protected_attributes-1.0.5/lib/active_record/mass_assignment_security/attribute_assignment.rb:15:in
`attributes_protected_by_default'
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/protected_attributes-1.0.5/lib/active_model/mass_assignment_security.rb:332:in
`block in protected_attributes_configs'
/usr/local/rvm/g...
2011 Nov 07
2
Problem with Rails3.1.1 in mass_assignment_authorizer
By accident I had Rails-3.1.1 installed by bundler. However, when I
discovered this mishap during my feature run I encountered this error
in many places:
wrong number of arguments (1 for 0) (ArgumentError)
/home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activemodel-3.1.1/
lib/active_model/mass_assignment_security.rb:209:in
`mass_assignment_authorizer''
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2013 May 04
21
Getting started w/ Rails 4
Hi. I''m trying to run Getting started tutorial under Rails 4.0.0.beta1
although it assumes it runs on Rails 3. I was able to get rid of all
errors by wrapping post_params here and there, and installing
protected_attributes Gem for attr_accessible to make sense. Post/
comment CRUD works just fine, but I don''t seem to be able to add Tags
(the final part of the tutorial). Post saved successfully message
appears, but tags aren''t saved as part of saving the post. Database
isn''t even UPDATEd un...