Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.76 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)