Hi there,
i’m trying to create a namedspace controller with scaffold, but I don’t
want my model to be under the namespace. Is there any way to do it?
rails g scaffold admin/user
Thanks in advance,
David S.
Hi there,
i’m trying to create a namedspace controller with scaffold, but I don’t
want my model to be under the namespace. Is there any way to do it?
rails g scaffold admin/user
Thanks in advance,
David S.
Hi,
You can’t do that with the scaffold generator, you must use :
Otherwise, you can run :
And remove in model folder admin.rb file and admin folder.
Le lundi 15 octobre 2012 13:41:49 UTC+2, Ruby-Forum.com User a crit :
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs