Created
October 2, 2011 22:25
-
-
Save batasrki/1258050 to your computer and use it in GitHub Desktop.
Example controller usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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