Sometimes you want to add a format such as .pdf or .json to an url/path helper. It easy just do:
your_path(format: :json)
your_url(format: :pdf)
Related External Links:
Sometimes you want to add a format such as .pdf or .json to an url/path helper. It easy just do:
your_path(format: :json)
your_url(format: :pdf)
Related External Links:
Article Topic:Software Development - Rails
Date:March 22, 2015
Want me to help develop your next Ruby-on-Rails project or application?
Contact Me