David Sousa
2012-Oct-15 11:40 UTC
Rails 3 Namedspace Controller Scaffold with a Simple Model
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 Sousa -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Geoffrey Roguelon
2012-Oct-15 15:14 UTC
Re: Rails 3 Namedspace Controller Scaffold with a Simple Model
Hi, You can''t do that with the scaffold generator, you must use : - rails g controller ... - rails g model ... - rails g helper ... Otherwise, you can run : - rails g scaffold admin/user - rails d model admin/user - rails g model user 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 :> > 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 Sousa > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/-bfrG4Dx7XkJ. For more options, visit https://groups.google.com/groups/opt_out.