Ruby on Rails Wednesday, January 24, 2018

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?


On Wednesday, January 24, 2018 at 2:43:11 PM UTC-6, fugee ohu wrote:
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/03104b2c-f4bf-42ec-914f-1dfca9f5f0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment