strong parameters

15 views
Skip to first unread message

fugee ohu

unread,
Jan 24, 2018, 3:43:11 PM1/24/18
to Ruby on Rails: Talk
I'm trying to debug a gem for the first time This gem has attr_accessible methods in it's models so I replaced them with strong parameters but I get unknown method for in this case post_params even though post params is defined in the posts controller

kopf1988

unread,
Jan 24, 2018, 9:17:51 PM1/24/18
to Ruby on Rails: Talk
If you define a method such as post_params in the controller, it will only be accessible in the controller, and probably not in the gem. What gem is it, maybe this has been encountered before?
Reply all
Reply to author
Forward
0 new messages