Why is there a wrong number of arguments error when using redirect_to in Rails 4.2?

后端 未结 1 760
无人及你
无人及你 2021-02-13 02:45

In the Rails 4.1.1 version of an app, I have the following create method in articles_controller:

def create
  @article = Article.new(article_params)
  authorize          


        
相关标签:
1条回答
  • 2021-02-13 03:25

    The issue was caused by the Gemfile containing an outdated version of Turbolinks (2.2.2). I resolved the issue by upgrading Turbolinks to version 2.5.3.

    In Gemfile:

    gem 'turbolinks', '~> 2.5.3'

    0 讨论(0)
提交回复
热议问题