Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def index
- @products = Product.find(:all)
- respond_to do |format|
- format.html
- format.pdf do
- send_data ProductDrawer.draw(@products), :filename => 'products.pdf', :type => 'application/pdf', :disposition => 'inline'
- end
- end
- end
Add Comment
Please, Sign In to add comment