Skip to content

Instantly share code, notes, and snippets.

@Benjmin
Created May 30, 2013 00:34
Show Gist options
  • Save Benjmin/5675002 to your computer and use it in GitHub Desktop.
Save Benjmin/5675002 to your computer and use it in GitHub Desktop.
= 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
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
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