On Mar 9, 2012, at 1:38 PM, Zhi-Qiang Lei 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

> 
> Best regards,
> Zhi-Qiang Lei
> [email protected]

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to