I would like to create method to render for my own format. What I would
like to accomplish is something like this:
respond_to do |format|
format.html
format.pdf { render :file :=> 'my_file' }
end
Where format.pdf is what I would like to accomplish. I guess I must do
two things:
1. Register new format (format.pdf)
2. Implement rendering method.
Can someone please direct me where should I begin. I don't seem to find
any good (easy) directions on the net.
by
TheR
--
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
-~----------~----~----~----~------~----~------~--~---