Forum: Ruby on Rails How do I set rails generator properties?

Posted by tamouse mailing lists (Guest)
on 2013-01-13 02:56
(Received via mailing list)
In a rails app I'm working on, when I invoke `rails generate scaffold
Model` it uses the `inherited_resources_controller` instead of
`scaffold_controller`. I'm not sure when it started doing this, but
I'd like it to stop doing that. I'm trying to figure out where this is
set and can't seem to find it.
Posted by Colin Law (Guest)
on 2013-01-13 10:44
(Received via mailing list)
On 13 January 2013 01:55, tamouse mailing lists 
<tamouse.lists@gmail.com> wrote:
> In a rails app I'm working on, when I invoke `rails generate scaffold
> Model` it uses the `inherited_resources_controller` instead of
> `scaffold_controller`. I'm not sure when it started doing this, but
> I'd like it to stop doing that. I'm trying to figure out where this is
> set and can't seem to find it.

Perhaps you have installed the InheritedResources gem?   To override
this action see [1] though I have not tried it.
That was the first hit on a google search for
inherited_resources_controller generate scaffold

Colin


[1] https://github.com/josevalim/inherited_resources/issues/195
Posted by tamouse mailing lists (Guest)
on 2013-01-14 03:47
(Received via mailing list)
On Sun, Jan 13, 2013 at 3:42 AM, Colin Law <clanlaw@googlemail.com> 
wrote:
> inherited_resources_controller generate scaffold
I'm now seeing it got installed when I installed ActiveAdmin...

Also, I think I'm dumping duckduckgo as my search engine, as it didn't
provide me with that link at all
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.