Project

General

Profile

Refactor #13895

Replace deprecated :to with :action in routes

Added by Dominic Cleal about 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Rails 4.2 deprecates route specifications with :to when they contain only an action name, issuing warnings. They should be using :action instead.

http://edgeguides.rubyonrails.org/4_2_release_notes.html#action-pack-deprecations

:to specifications with "controller#action" remain valid and unchanged.

Associated revisions

Revision b564efcd (diff)
Added by Dominic Cleal about 6 years ago

fixes #13895 - replace :to with :action in routes

Using :to with a string that doesn't contain # is deprecated since
Rails 4.2, and it should instead use :action or :controller as
appropriate.

http://edgeguides.rubyonrails.org/4_2_release_notes.html#action-pack-deprecations

History

#1 Updated by The Foreman Bot about 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3236 added

#2 Updated by Dominic Cleal about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal about 6 years ago

  • Legacy Backlogs Release (now unused) set to 136

Also available in: Atom PDF