Hi,
I have a model “Script” can be convert to css with #to_css. But
“format.css { render css: @script }” in an action’s #respond_to will
cause an ActionView::MissingTemplate. I think it wants I put a template
in view. How can I avoid that? Thanks.
Best regards,
Zhi-Qiang L.
[email protected]
Still the same, why it does not behave like json?
On Mar 10, 2012, at 3:10 AM, Walter Lee D. wrote:
Best regards,
Zhi-Qiang L.
[email protected]
On Mar 9, 2012, at 1:38 PM, Zhi-Qiang L. wrote:
Hi,
I have a model “Script” can be convert to css with #to_css. But “format.css {
render css: @script }” in an action’s #respond_to will cause an
ActionView::MissingTemplate. I think it wants I put a template in view. How can I
avoid that? Thanks.
Try adding layout: nil to your arguments.
Walter