Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #2038
Closed
Open
Issue created Aug 23, 2021 by Administrator@rootContributor

polymorphic route arguments issue on update route

Created by: remy727

Steps to reproduce

Upgrade rails version from 5.2.4.3 to 5.2.4.6

Expected behavior

Show page needs to be shown after Update.

Actual behavior

When update, it doesn't redirect to show page and this error is showing.

ArgumentError in Admin::ProductsController#update
Please use symbols for polymorphic route arguments.

System configuration

Ruby version: 2.4.0 Rails version: 5.2.4.6

Thoughts

I think this line needs to be updated.

# current
def after_resource_updated_path(requested_resource)
   [namespace, requested_resource]
end

# new
def after_resource_updated_path(requested_resource)
   [namespace.to_sym, requested_resource]
end
Assignee
Assign to
Time tracking