
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.76 KB | hits: 14 | expires: Never
Why can't rake routes be more helpful
new_edition GET /editions/new(.:format) editions#new
edit_edition GET /editions/:id/edit(.:format) editions#edit
edition GET /editions/:id(.:format) editions#show
PUT /editions/:id(.:format) editions#update
DELETE /editions/:id(.:format) editions#destroy
edition GET /editions/:id(.:format) editions#show edition_path()
link_to 'Edit', [:edit, @user] # instead of edit_user_path(@user)
redirect_to Product # instead of products_path
form_for [@order, @product] do |f| # instead of order_product_path(@order, @product)
visit url_for [:preview, @invoice] # instead of preview_invoice_path(@invoice)