ruby on rails - Mass-assigning attributes in ActiveAdmin -


i try create new user using active admin , get:

can't mass-assign protected attributes: user_id, approved_at_date, approved_at_time_hour, approved_at_time_minute, expire_at_date, expire_at_time_hour, expire_at_time_minute 

and yes, these attributes aren't accessible usual user. them accessible in admin panel. how achieve this?

there with_role method of inherited_resources used active admin assign scope attributes such accessible active admin not general users.

check out scoped mass assignment active admin.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -