ruby on rails - Can generate scaffold put the controller in a namespace? -


I want to create a scramble in a rail app, to design a model normally, but to be a controller inside the admin nomenclature needed. Is this possible?

for the first time I did it, I ran

 script / generated Blog  

and then reapply the controller, ideas etc. My favorite solution at this time is: generate

  script / scaffold administrator :: blog  

and then model, unit test and migration refactor; This is less work.

If there is a better answer then I will accept it.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -