I'm using `*wicked_pdf*` to handle PDF response but rails use HTML response
even I already set route form to "*pdf*".
The `pdf` mime type already been registered.
*At controller:*
respond_to :pdf, only: :show
# GET /documents/1
# GET /documents/1.pdf
def show
retrieve_document_search_hits(@document)
respond_with(@document) do |format|
format.pdf { render pdf: @document.display_text }
format.html
end
end
rails v4.2.1
responders v2.1.0
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/9f8dc751-6e4a-45d7-85ac-dc8e29555334%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.