Advertisement · 728 × 90
#
Hashtag
#HanamiTips
Advertisement · 728 × 90
Post image

@hanamirb.org provides the ability to reuse param validations/definitions across actions.

In each action class you can define `params` blocks, but you can also make those into reusable classes that can be shared (and tested!) if you have a common set of params that need to be used!

#HanamiTips

11 1 2 0
Post image

Starting a new series called: #HanamiTips

You can implement your own logging behavior for @hanamirb.org by overriding the config.logger.logger_constructor in your app.rb file.

This one records the logs to stdout AND a log file and rotates logs daily or at 1mb in size.

21 4 0 1