Today I Learned

hashrocket A Hashrocket project

Pass request format to url_for

#url_for takes a Hash of options to change the format:

<%= link_to "Final Invoice", [:final_invoice, ticket, {format: :pdf}] %>
Final Invoice
Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.