David Kahn wrote in post #957895:
> In Rails 2 I could do this to get the view as a string (i.e. to save it
> to a
> file):
>
>     av = ActionView::Base.new(Rails::Configuration.new.view_path)
>     html = av.render(
>         :partial => "comparisons/display",
>         :locals => { :comparison => self, :format_html => nil,
> :print_view
> => print_view, :fully_qualified_url_prefix =>
> fully_qualified_url_prefix,
> :user => user }
>     )
>
> In Rails 3 it seemingly does not work anymore.

Did you perchance want render_to_string (which also exists in Rails 2)?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

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