ruby on rails - Routes.rb: Mutilple Controllers -
i have been able view single controller @ localhost port 3000 using root 'controller#action'. view multiple controllers using routes.rb config file. please advise if not following best path. should create different view/controller each control such textfield, dropdown, etc. new ruby on rails , web development.
you should @ rails routing documentation - explains how it:
#config/routes.rb resources :users, :posts, :transactions
this create series of restful
routes can use in application, controller
should create different view/controller each control such textfield, dropdown
each controller/action
users see when hit specific "page" on site. each view
shows user bunch of html; each controller
creates variables use in view; each model
pulls relevant data database
you should read how started rails see how works
Comments
Post a Comment