Guest User

Untitled

a guest
Jul 20th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Why can't rake routes be more helpful
  2. new_edition GET /editions/new(.:format) editions#new
  3. edit_edition GET /editions/:id/edit(.:format) editions#edit
  4. edition GET /editions/:id(.:format) editions#show
  5. PUT /editions/:id(.:format) editions#update
  6. DELETE /editions/:id(.:format) editions#destroy
  7.  
  8. edition GET /editions/:id(.:format) editions#show edition_path()
  9.  
  10. link_to 'Edit', [:edit, @user] # instead of edit_user_path(@user)
  11. redirect_to Product # instead of products_path
  12. form_for [@order, @product] do |f| # instead of order_product_path(@order, @product)
  13. visit url_for [:preview, @invoice] # instead of preview_invoice_path(@invoice)
Advertisement
Add Comment
Please, Sign In to add comment