mass-assignment
Rails 3 : Mass-assignment with ActiveAdmin and has_one
I am developing a rails application in which I have two models User and Client. User is backed by devise and is responsible for authentication and has_one Client which holds the client details for a g[详细]
2023-04-08 04:07 分类:问答Rails 3.1 attr_accessible verification receives an array of roles
I would like to use rails new dynamic attr_accessible feature. However each of my user has many roles (i am using declarative authorization). So i have the following in my model:[详细]
2023-04-06 18:35 分类:问答Why slicing the params hash poses a security issue on mass-assignment?
The official way of preventing security risks with mass-assignment is using attr_accessible. However, some programmers feel this is not a job for the model (or at least not only for the model). The si[详细]
2023-04-06 06:53 分类:问答Rails "mass assignment" - what exactly constitutes this?
开发者_运维问答Rails documentation doesn\'t make this very clear, but it seems that all uses of update_attributes constitutes mass assignment and all attributes need to be whitelisted if using attr_ac[详细]
2023-04-04 22:47 分类:问答Getting Mass Assignment warning but don't know why
I am very confused by the following warning about mass assignment: WARNING: Can\'t mass-assign protected attributes: upload_id[详细]
2023-03-26 16:50 分类:问答Changes to mass_assignment_authorizer cause errors in Ruby on Rails 3.1
Protecting against mass assignment as in this railscast no longer works in Rails 3.1. Error given is: wrong number of arguments (1 for 0)[详细]
2023-03-22 08:27 分类:问答Rails nested form inserts null attributes in database
I\'ve searched a lot and the common cause of this problem is attr_ascessible :model_attributes not being declared but I can\'t seem to get it working.[详细]
2023-03-20 04:15 分类:问答mass assignment selecting childs of user, using Devise
I have a very si开发者_运维问答mple issue: User model: class User < ActiveRecord::Base devise :database_authenticatable,[详细]
2023-03-20 04:00 分类:问答How to seed a Rails 3.1 app with scoped mass assignment
How does Rails 3.1 (RC4) and scoped mass assignment expect us to work with seeds.rb when loading a list of data.[详细]
2023-03-14 08:32 分类:问答Scoped mass assignment and accepts_nested_attributes_for in Rails 3.1 not working?
Using Rails 3.1 RC4. My User model has the following: 开发者_开发知识库has_many :emails, :dependent => :destroy[详细]
2023-03-12 17:11 分类:问答