Advertisement
solidsnake

11/26

Nov 25th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.40 KB | None | 0 0
  1. routes.rb
  2. Rails.application.routes.draw do
  3.     # http://localhost:3000
  4.     # method to map "/" to a controller#method
  5.     # to look for a file called pages_controller.rb
  6.  root(:to => "pages#index")
  7.  
  8. # produces a route about path
  9. get("/about", :to => "pages#about", :as => :about)
  10. get("/marketplace", :to => "pages#marketplace", :as => :marketplace)
  11. get("/contact", :to => "pages#contact", :as => :contact)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement