Hello,

I'm stucked in a completely newbie question ...

I have one controller scann

all the default methods work: index, new, save, ...

I added a new one called query, and when I try to call it

http://127.0.0.1:3000/scann/query

I'm getting an error, and the method who is trapping is 'show'

ActiveRecord::RecordNotFound in ScannsController#show

Couldn't find Scann with ID=query
RAILS_ROOT: /Users/montx/Documents/Ruby/scanner

Application Trace | Framework Trace | Full Trace
/Users/montx/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1528:in
`find_one'
/Users/montx/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1511:in
`find_from_ids'
/Users/montx/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:590:in
`find'
app/controllers/scanns_controller.rb:21:in `show'
app/controllers/application.rb:42:in `login_required'
...

If for example I put an undefined action:

http://127.0.0.1:3000/scann/q5645343 is also trying to execute the
'show' action ...

wich route I should add to my routes.rb to allow this action ?

I read mor than twice the Rails Routing from the Outside In and made
some attempts but ...

:-(

thanks,

r.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to