Method: ServicesController#create

Defined in:
app/controllers/services_controller.rb

#createObject



16
17
18
19
20
21
22
23
24
# File 'app/controllers/services_controller.rb', line 16

def create
  @service = Service.new(params[:service])
  if @service.save
    flash[:notice] = 'Successfully created service.'
    redirect_to @service
  else
    render :action => 'new'
  end
end