Ruby on Rails about the Structure App Sample -


im learning ruby on rails have somes questions , not find answers hope me in , , thanks.

1 - if construct e-commerce store , im have create controller each aspect example: 1 controller admin 1 controller products 1 controller store 1 controller client

my question , correct ? 1 controller each ?

2 - im analise scaffold code , im not want use , want write app analyse code , see diferent routs , example , create post , how define actions , scaffold use new show create..and more classes(actions) default ?or code in controller of generated scaffold make how define if or post ?

i hope can answer these questions, thank support.

1 - if construct e-commerce store , im have create controller each aspect example: 1 controller admin 1 controller products 1 controller store 1 controller client

my question , correct ? 1 controller each ?

yes, 1 controller each!

and don't forget: skinny controller, fat model!


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -