Franz Strebel wrote:
> On Mon, Jan 19, 2009 at 11:19 AM, Raimon Fs
> <[email protected]> wrote:
>>
>> http://127.0.0.1:3000/scann/query
>>
>> I'm getting an error, and the method who is trapping is 'show'
> 
> You'll need to add a new route for your custom action.  Assuming you
> have map.resources :scanns in your routes.rb
> 
> If the action you need will work on a collection:
> 
> map.resources :scanns, :collection => { :query => :get }
> 
> or if just on a member:
> 
> map.resources scanns, :member => { :query => :get }
> 
> You'll need to change :get to whatever method you need.

I also added the lines as you said, the same problem, and also tried 
with:

map.resources :scanns, :member => { :query => :any }

In this case, what I want is to show a page with a form for enter data 
and later query the database.

I could make it work with other Rails versions but not with the last one 
...

What can be wrong ???

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