class OrgController < ApplicationController
  # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
  verify :method => :post, :only => [ :create, :update ],
         :redirect_to => { :action => :list }

  def index
    store_location
    @orgs = Org.find(:all)
    @webpage_title = 'List of Organizations'
    render :action => 'list'
  end

  def list
    store_location
    @webpage_title = 'List of Organizations'
    @orgs = Org.find(:all)
  end

  def show
    store_location
    @org = Org.find(params[:id])
    @webpage_title = 'Organization: '+ @org.name
  rescue
    render :text => 'bonehead!', :layout => false
  end

end
