Skip to content

"NoMethodError (undefined method `new_project_resource_item_path' for #<AssetResourceItemsController:" error when clicking "Create and add another" button from a project "Assets" or "People" tab new button #26

@sanak

Description

@sanak

Problem
"undefined method `new_project_resource_item_path' error when clicking "Create and add another" button from a project "Assets" or "People" tab new button

To Reproduce

  1. Go to a project's "Assets" tab
  2. Click upper right "New Asset" button
  3. Fill name and click "Create and add another" button
  4. The following error occurs.
    Started POST "/projects/ecookbook/asset_resource_items" for 127.0.0.1 at 2025-05-10 21:10:49 +0900
    Processing by AssetResourceItemsController#create as HTML
    :
      ↳ plugins/redmine_supply/lib/redmine_resource_manager/save_resource_item.rb:30:in `call'
    Completed 500 Internal Server Error in 80ms (ActiveRecord: 34.0ms (9 queries, 0 cached) | GC: 12.3ms)
    
    
      
    NoMethodError (undefined method `new_project_resource_item_path' for #<AssetResourceItemsController:0x0000000002c5d8>):
      
    plugins/redmine_supply/app/controllers/resource_items_controller.rb:28:in `create'
    lib/redmine/sudo_mode.rb:78:in `sudo_mode'
    

Expectation
The error should not be shown and new empty "Asset" or "People" form should be shown.

Screenshots

Image

Platform:

  • Device: M1 MacBook Pro
  • OS: macOS Sequoia 15.4.1
  • App Version: next branch

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions