繁体   English   中英

使用没有相应 html 视图的 rails-latex 渲染 pdf

[英]rendering a pdf with rails-latex that has no corresponding html view

我正在尝试在 rails 3 中找到 rtex 的替代品并找到 rails-latex。 In the example application in the git repository the following link in index.html.erb renders a pdf file using the latex code in index.pdf.erb:

<%= link_to "打印", latex_example_path(:format =>:pdf) %>

如果没有 article_list.html.erb,是否也可以从 article_list.pdf.erb 生成 pdf 文件? 我是否必须针对问题更改路线? 目前我只有以下路线: match ':controller(/:action(/:id(.:format)))'

谢谢你的帮助!

当您要求特定格式的 URL 时,无论其他格式模板如何,它都会呈现此格式。 请尝试并再次询问是否无法正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM