Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8725253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:00:02+00:00 2026-06-13T08:00:02+00:00

I keep getting these errors for no route matches for actions ‘edit’ controller: def

  • 0

I keep getting these errors for no route matches for actions ‘edit’

controller:

def remove_artifact_from_collection

... do my stuff ..

render(:action=>:show)
end

view: the line on which it errors

<p><%= link_to 'Edit Evidence Item', edit_artifact_path, :class => 'edit_button' %></p>

routes:

resources :artifacts do
    collection do
    get 'remove_artifact_from_collection'
    end
end

bundle exec rake routes

 remove_artifact_from_collection_artifacts GET    /artifacts/remove_artifact_from_collection(.:format)      {:controller=>"artifacts", :action=>"remove_artifact_from_collection"}
                                 artifacts GET    /artifacts(.:format)                                      {:controller=>"artifacts", :action=>"index"}
                                           POST   /artifacts(.:format)                                      {:controller=>"artifacts", :action=>"create"}
                              new_artifact GET    /artifacts/new(.:format)                                  {:controller=>"artifacts", :action=>"new"}
                             edit_artifact GET    /artifacts/:id/edit(.:format)                             {:controller=>"artifacts", :action=>"edit"}
                                  artifact GET    /artifacts/:id(.:format)                                  {:controller=>"artifacts", :action=>"show"}
                                           PUT    /artifacts/:id(.:format)                                  {:controller=>"artifacts", :action=>"update"}
                                           DELETE /artifacts/:id(.:format)                                  {:controller=>"artifacts", :action=>"destroy"}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:00:03+00:00Added an answer on June 13, 2026 at 8:00 am

    That’s because you’re not supplying an artifact/id to edit_artifact_path. Assuming your artifact is in the @artifact instance variable, you should use:

    link_to 'Edit Evidence Item', edit_artifact_path(@artifact), ...

    You could also use:

    link_to 'Edit Evidence Item', [:edit, @artifact], ...

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting these 2 errors in my code In function 'int main()': error:
Keep getting these errors while trying to compile an c++ class program. testStock.cpp: In
I know quite a title. However I seem to keep getting these mysterious errors
I keep getting these errors when trying to delete rows from a table. The
I keep getting these errors: Error running 'make ', please read /Users/jason* /.rvm/log/ruby-1.9.2-p320/make.log There
I keep getting these errors while retreiving images here. 07-26 17:21:29.194: ERROR/AndroidRuntime(396): java.lang.RuntimeException: An
Solved When I try to compile this program i keep getting these errors: (50)
I keep getting these errors trying to run the Reachability.h
When my code is stored and saved and out putted I keep getting these
I can't figure out why I'm getting these errors. I'm using Qt 4.7.4. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.