This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Custom respond_to
By default active scaffold responds to the html, json, js, xml, and yaml mime types.
If you need to add a custom mime type you can do it in one of two ways.
Example:
# to add a mime type to all actions active_scaffold do |config| config.formats << :pdf end # to add it to only one action active_scaffold do |config| config.show.formats << :pdf end
So now your controller or action will respond to that format. Now you need to hook into the response type for that action.
Example:
def show_respond_to_pdf #render whatever you want here end # or if you want to override something that already exists def show_respond_to_html render :action => :show, :layout => 'main' end






