search for: whitelist_attribut

Displaying 3 results from an estimated 3 matches for "whitelist_attribut".

Did you mean: whitelist_attributes
2012 Apr 27
1
Can't mass-assign protected attributes even if I use attr_accessible
...hor model : class Author < ActiveRecord::Base attr_accessible :name, :email extend FriendlyId friendly_id :name, use: :slugged # some validations has_many :posts #authlogic acts_as_authentic # some stuffs end Actually, I have disabled whitelist_attributes and it solved my problem but I suppose that is not the convenient way to do this (and probably not a good idea). My question is : Why the attr_accessible does not work here ? And how can I solve the problem without disabling the whitelist ? Thank you, Revan -- Posted via http://www.ruby-for...
2014 Jun 11
0
my webpage does not send emails confimation/notification
...# This will create an empty whitelist of attributes available for mass-assignment for all models # in your app. As such, your models will need to explicitly whitelist or blacklist accessible # parameters by using an attr_accessible or attr_protected declaration. config.active_record.whitelist_attributes = true #config.assets.initialize_on_precompile = false # Enable the asset pipeline config.assets.enabled = true # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' config.assets.initialize_on_precompile =...
2013 Mar 14
7
No Migration Files are created
I''ve been working with Rails for 3 Months now, but haven''t experienced this problem until now. I''m currently working through Micharl Hartls Tutorial and everything worked fine so far, but suddenly (chapter 11) I can nolonger create Migration Files. when entering "rails g model Name field1:type" I don''t get the usual "create db/migrate...."