ruby on rails - ActionController::UnknownFormat in htmltoword gem -


i using htmltoword gem here https://github.com/karnov/htmltoword , followed steps that. here error when running controller

error is

actioncontroller::unknownformat in htmltopdfccontroller#show

my controller code

class htmltopdfccontroller < applicationcontroller   def show         respond_to |format|         format.docx         file = htmltoword::document.create params[:docx_html_source], "file_name.docx"         send_file file.path, :disposition => "attachment"         end     end   end end 

help me out.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -