-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionController::UnknownFormat #47
Comments
I'm experiencing the exact same issue. Any clues so far? |
I had the same issue and I've posted this question on SO - [RoR HTML template to .docx](http://stackoverflow.com/questions/37161214/ror-html-template-to-docx/37165372], and I've managed to solve it. From SO). Note for RoR versions 4.2. : Let's create a Gemfile
routes.rb
foos_controller.rb
download.docx.erb
And I've added some link to trigger the download logic:
Which will download the |
Had the same problem. I wrote the line in routes.rb like this: routes.rb
and I didn't need the responders gem. also, I didn't need the |
@ghost does @rvanrinsum's solution work for you? |
Hi,
I am unable to view the docx file, as every time I go and try accessing the routes, it throws error
ActionController::UnknownFormat (ActionController::UnknownFormat):
app/controllers/enterprisecycles_controller.rb:22:in `testcycle_requirement_document'
respond_to do |format|
format.docx do
I have written following code:
I am using htmltoword (0.5.1)
Kindly help.
The text was updated successfully, but these errors were encountered: