RubyFlow The Ruby and Rails community linklog

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.

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in