Hi --

On Mon, 19 Jan 2009, Raimon Fs wrote:

>
> 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 ???

Can you give the output of:

   ruby script/about

from your application directory?


David

-- 
David A. Black / Ruby Power and Light, LLC
Ruby/Rails consulting & training: http://www.rubypal.com
Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2)

http://www.wishsight.com => Independent, social wishlist management!

--~--~---------~--~----~------------~-------~--~----~
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