Advertisement
Guest User

routes.rb

a guest
Nov 5th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 1.42 KB | None | 0 0
  1.        posts GET    /posts(.:format)             {:action=>"index", :controller=>"posts"}
  2.              POST   /posts(.:format)             {:action=>"create", :controller=>"posts"}
  3.     new_post GET    /posts/new(.:format)         {:action=>"new", :controller=>"posts"}
  4.    edit_post GET    /posts/:id/edit(.:format)    {:action=>"edit", :controller=>"posts"}
  5.         post GET    /posts/:id(.:format)         {:action=>"show", :controller=>"posts"}
  6.              PUT    /posts/:id(.:format)         {:action=>"update", :controller=>"posts"}
  7.              DELETE /posts/:id(.:format)         {:action=>"destroy", :controller=>"posts"}
  8.    tag_posts GET    /posts/tag(.:format)         {:action=>"tag", :controller=>"posts"}
  9.              GET    /posts(.:format)             {:action=>"index", :controller=>"posts"}
  10.              POST   /posts(.:format)             {:action=>"create", :controller=>"posts"}
  11.              GET    /posts/new(.:format)         {:action=>"new", :controller=>"posts"}
  12.              GET    /posts/:id/edit(.:format)    {:action=>"edit", :controller=>"posts"}
  13.              GET    /posts/:id(.:format)         {:action=>"show", :controller=>"posts"}
  14.              PUT    /posts/:id(.:format)         {:action=>"update", :controller=>"posts"}
  15.              DELETE /posts/:id(.:format)         {:action=>"destroy", :controller=>"posts"}
  16.         root        /                            {:controller=>"posts", :action=>"index"}
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement