When I render the report, it's to a file that can be viewed, printed,
or backed up as needed. It is to a pdf, so I'm using:
respond_to do |format|
format.pdf { send_data render_to_pdf( :action => 'idreport',
:layout =>
'pdf_report'),
:filename => "ID List
for " + @today.strftime('%m-%d-%y') + ".pdf" }
end
Then the error is caused by a redirect_to(households_url)
Bob
On Jun 6, 3:19 pm, radhames brito <[email protected]> wrote:
> How come you want to present the report and then close it and go somewhere
> else? people wont see it. i dont get it , it seems you used render where you
> should have used send_file but i need to see your code to be sure.
--
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.