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 9102211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:19:31+00:00 2026-06-17T01:19:31+00:00

After adding three custom member routes, everything works fine in the development and production

  • 0

After adding three custom member routes, everything works fine in the development and production environments, but fails in the testing environment.

In config/routes.rb, our custom member routes are copy, download and abort:

resources :kw_researches do
  member do
    get 'copy'
    get 'download'
    put 'abort'
  end
end

Running rake routes shows the member routes are all fine and dandy (not a big surprise, as they actually work in production and development):

$ rake routes
    copy_kw_research GET    /kw_researches/:id/copy(.:format)     kw_researches#copy
download_kw_research GET    /kw_researches/:id/download(.:format) kw_researches#download
   abort_kw_research PUT    /kw_researches/:id/abort(.:format)    kw_researches#abort
       kw_researches GET    /kw_researches(.:format)              kw_researches#index
                     POST   /kw_researches(.:format)              kw_researches#create
     new_kw_research GET    /kw_researches/new(.:format)          kw_researches#new
    edit_kw_research GET    /kw_researches/:id/edit(.:format)     kw_researches#edit
         kw_research GET    /kw_researches/:id(.:format)          kw_researches#show
                     PUT    /kw_researches/:id(.:format)          kw_researches#update
                     DELETE /kw_researches/:id(.:format)          kw_researches#destroy

But the tests in both ./spec/views/kw_researches/index.html.erb_spec.rb and ./spec/integration/kw_research_index_page_spec.rb fail with errors such as the following:

  10) KwResearch index page KwResearch has all relevant actions
     Failure/Error: visit kw_researches_path
     ActionView::Template::Error:
       undefined method `copy_kw_research_path' for #<#<Class:0x007faab8c9a238>:0x007faab717fd40>

Why is copy_kw_research_path not available, while its good (standard helper) friend edit_kw_research_path is? Thanks…

  • 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-17T01:19:32+00:00Added an answer on June 17, 2026 at 1:19 am

    When we returned to the problem two weeks later, it just disappeared: It would appear that restarting both the rails server (thin) and guard solved it.

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

Sidebar

Related Questions

I'm adding a LINQ interface to some custom objects, but the C# compiler fails
After adding Restkit to the Podfile : platform :ios dependency 'Facebook-iOS-SDK', '1.2' dependency 'RestKit',
After adding a second persistence unit and changing my application's data sources to XADataSource
After adding the /TSAWARE linker flag to one of my projects (Visual Studio 6),
After adding the key value pairs in NSMutableDictionary, when i retrive the key/values from
After adding these settings in web.config for increasing session timeout: <sessionState mode=InProc stateConnectionString=tcpip=127.0.0.1:42424 stateNetworkTimeout=240
After adding elements to page using something like this, $('#blah').append('<div id=bugsbunny></div>'); how can I
After adding <item>170,000</items> to string.xml . It becomes so slow in building workspace, I
I'm having a problem after adding button on my star rating. Every time when
I am getting this error after adding the libxml2.2.dylib file Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovies.app/funmovies (1

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.