El Tuesday 16 December 2008 23:50:42 [email protected] escribió:
> disclaimer: i'm a newbie.
>
> i've turned active scaffold on in one of my controllers (call it
> 'foos_controller'), by including the line active_scaffold :foo.
>
> i also have an action in the controller:
>
> def foobar
> end
>
> i plan to populate this action with some useful stuff and want to
> invoke it via the url:
>
> localhost:3000/foos/foobars
>
> yet - when i try to do so, i get the message: Couldn't find Foo with
> ID=foobars. AS is intercepting and trying to reinterpret what i'm
> wanting to do.
>
> I seem to remember encountering this problem once before and being
> able to fix it by making sure that I had a view in the app/views/foos
> directory named foobar.html.erb. but - that doesn't do the job.
>
> what am i doing wrong? how do i get to my controller action?
>
> thanks,
> yoram

Have you added :active_scaffold => true to map.resuorces in your routes.rb?

-- 
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to