Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # redirect with flash message
- redirect_to @product, :notice => "My flash message"
- # redirect to edit
- redirect_to [:edit, @product]
- # select a format for a response
- respond_with(@product.to_xml)
- # delegate response handling to a class
- respond_with(@product, :responder => MyClass)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement