Whats makes you think, there is anything wrong with routes? AFAIK, there is nothing wrong with routes. Your #show action apparently has a problem and some record is not being found
Main Topics
Browse All TopicsI am trying to use a custom action inside a controller in rails 2.0.2. I have followed 3 tutorials, and each of them fail (!?!?!?!) I am pulling my hair out trying to get this seemingly simple thing to work. Can you please tell me what I am doing wrong?
Following is my environment and my code. I followed this railscast STEP BY STEP and get the same error before and after applying the 'fix' of adding ", :collection => { :completed => :get }" to my routes.rb (right after the "map.resources :tasks")
Can you please tell me what I'm doing wrong?
Thanks a BILLION!!!
Darin
Environment, MacBook Pro, OSX 10.5.2, Rails 2.02, Ruby 1.8.6
Attached is the code, and the results of running 'rake routes', which shows the appropriate routes, but they still do not work. I.e. after the fix (adding ', :collection => { :completed => :get }'), I still get:
"ActiveRecord::RecordNotFo
Couldn't find Task with ID=completed"
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Wow, 7 days to respond to a post? I have this under the Ruby category, is there something else I can do to actually get responses to my posts? Is my question stupid, or arrogant, or menial or what?
Please let me know if there is something that I am doing that contributes to taking 7 days for a response to a post. I thought speed was one of the benefits of Experts Exchange?
Thanks
D
Well, the #show action is straight from the generator, and it works fine when called directly. I am following tutorials, and not modifying ANYTHING and still get the error on 3 different attempts (differnt app builds).
I just can't believe it took 7 days for someone to look at my post. Perhaps I am expecting too much from this service?
d
Business Accounts
Answer for Membership
by: darinmurrayPosted on 2008-06-27 at 20:16:14ID: 21889085
Sorry, I'm actually in rails 2.1.0, not 2.0.2 as stated above.
Thanks
D