Skip to content

Instantly share code, notes, and snippets.

@batasrki
Created October 2, 2011 22:25
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 batasrki/1258050 to your computer and use it in GitHub Desktop.
Save batasrki/1258050 to your computer and use it in GitHub Desktop.
Example controller usage
module Admin
class JobsController < BaseController
def create
@job = Job.new(params[:job])
@job.step = @job.category.steps.first
if @job.save
# Add default PMs
@job.preset_fields
#other stuff
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment