Created
May 30, 2013 00:34
-
-
Save Benjmin/5675002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for :user, url: user_path do |f| | |
%p | |
= f.label :name | |
= f.text_field :name | |
%p | |
= f.label :favorite_number | |
= f.text_field :favorite_number | |
%p | |
= f.label :bio | |
= f.text_area :bio | |
%p | |
= f.submit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_book_post_index GET /user/:user_id/book/:book_id/post(.:format) post#index | |
POST /user/:user_id/book/:book_id/post(.:format) post#create | |
new_user_book_post GET /user/:user_id/book/:book_id/post/new(.:format) post#new | |
edit_user_book_post GET /user/:user_id/book/:book_id/post/:id/edit(.:format) post#edit | |
user_book_post GET /user/:user_id/book/:book_id/post/:id(.:format) post#show | |
PUT /user/:user_id/book/:book_id/post/:id(.:format) post#update | |
DELETE /user/:user_id/book/:book_id/post/:id(.:format) post#destroy | |
user_book_index GET /user/:user_id/book(.:format) book#index | |
POST /user/:user_id/book(.:format) book#create | |
new_user_book GET /user/:user_id/book/new(.:format) book#new | |
edit_user_book GET /user/:user_id/book/:id/edit(.:format) book#edit | |
user_book GET /user/:user_id/book/:id(.:format) book#show | |
PUT /user/:user_id/book/:id(.:format) book#update | |
DELETE /user/:user_id/book/:id(.:format) book#destroy | |
user_index GET /user(.:format) user#index | |
POST /user(.:format) user#create | |
new_user GET /user/new(.:format) user#new | |
edit_user GET /user/:id/edit(.:format) user#edit | |
user GET /user/:id(.:format) user#show | |
PUT /user/:id(.:format) user#update | |
DELETE /user/:id(.:format) user#destroy | |
root / welcome#index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dogears::Application.routes.draw do | |
resources :user do | |
resources :book do | |
resources :post | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment