Param Validators as Ruby objects
Using service objects as replacement of strong params makes controller validation easy and complete. Check our gem here: ParamsFor. Thx and happy coding.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Using service objects as replacement of strong params makes controller validation easy and complete. Check our gem here: ParamsFor. Thx and happy coding.
Comments
Nice job. I made a gem to handle params too except that it does not makes use of ActiveModel::Validations, it just extract the params logic into it own class.
https://github.com/edelpero/action_parameter
Post a comment