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