blog.robotex.de

Safer ruby on rails development

To avoid forgetting translations or params, you can add following settings to your application. Then, missing translations or unpermitted params will raise an exception.

# config/environments/development.rb  
# Raises error for missing translations
config.action_view.raise_on_missing_translations = true

# Raises an error on unpermitted attributes assignment
config.action_controller.action_on_unpermitted_parameters = :raise

Back