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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -