Skip to content

Instantly share code, notes, and snippets.

@watson
Created September 29, 2010 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watson/602627 to your computer and use it in GitHub Desktop.
Save watson/602627 to your computer and use it in GitHub Desktop.
Show action in work_processes_controller.rb
def show
@work_process = @project.work_processes.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @work_process.to_xml(:include => [:project,
:companies,
:equipment,
:inspections,
:material_packages,
:preconditions,
:protections,
:qualifications,
:requirements,
:wasted_times,
:activity_referrals,
:work_method_referrals,
:crew_referrals,
:material_referrals,
:equipment_referrals],
:methods => []) }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment