Skip to content

Update example article for Rails 5.1 #138

@wrycoder

Description

@wrycoder

When I tried to go through the steps in the example...

http://collectiveidea.com/blog/archives/2016/05/31/beyond-yml-files-dynamic-translations/

...my test kept failing. It appeared as if the TranslationsController was being ignored. The locale was never set, but the application views still loaded. After lots of trial and error, I came across this post:

https://stackoverflow.com/questions/16519828/rails-4-before-filter-vs-before-action

It looked as if the example was using a method that has now been removed from Rails. When I changed before_filter to before_action, everything worked. Could the example article be updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions