On 29 October 2010 19:03, David Kahn <[email protected]> wrote:
> Why is Rails looking for a template while I have told it to render a
> specific file? This worked under Rails 2. I read
> http://www.engineyard.com/blog/2010/render-options-in-rails-3/ which from I
> gather makes any format.xxx look for a template xxx which is *not* what I
> need to do as the file is created dynamically:

I think you misunderstand that article.

Looks to me that instead of passing css filenames into the
"ActionController.add_renderer" block, you could just as easily pass
your actual dynamically generated PDF, and then have the "send_data"
call send your file.

But I agree, it's certainly easier the just "render :file => foo_bar"
- which I do in some of my controller actions, and I've not moved to
Rails3 yet, so I'll be interested in your result.

-- 
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