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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -