fgrehm/letter_opener_web

[Exception] "undefined method `before_filter' for LetterOpenerWeb::LettersController:Class" on Rails5

Closed this issue · 1 comments

kenju commented

Environment:

  • ruby: 2.3.1
  • rails: 5.1.1

How to reproduce

  1. Instal rails v5.1.x and letter_opneer_web
  2. Configure and open the web page

Stacktrace:

ActionController::RoutingError - undefined method `before_filter' for LetterOpenerWeb::LettersController:Class
Did you mean?  before_action:
  actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:45:in `rescue in controller'
  actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:43:in `controller'
  actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:29:in `serve'
  actionpack (5.1.1) lib/action_dispatch/journey/router.rb:46:in `block in serve'
  actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `serve'
  actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:832:in `call'
  railties (5.1.1) lib/rails/engine.rb:522:in `call'
  railties (5.1.1) lib/rails/railtie.rb:185:in `method_missing'
  actionpack (5.1.1) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
  actionpack (5.1.1) lib/action_dispatch/routing/mapper.rb:46:in `serve'
  actionpack (5.1.1) lib/action_dispatch/journey/router.rb:46:in `block in serve'
  actionpack (5.1.1) lib/action_dispatch/journey/router.rb:33:in `serve'
  actionpack (5.1.1) lib/action_dispatch/routing/route_set.rb:832:in `call'

I came across this commend. #46 (comment)
May I ask, does this gem not work with Rails 5 yet?

kenju commented

We were using letter_opener_web with v1.3.0, but this bug was already fixed with v1.3.1.
v1.3.0...v1_stable