app/controllers/clients_controller.rb
#
# Creates new client. Fills its details with data sent from html form
#

Creates new client. Fills its details with data sent from html form
Creates new client . Fills its details with data sent from html form
def create
    @client = Client.new(params[:client])
    if @client.save
      flash[:notice] = 'Client has been successfully created'
      redirect_to :action => 'list'
    else
      render :action => 'new'
    end
  end
def create @client = Client . new ( params [ :client ] ) if @client . save flash [ :notice ] = 'Client has been successfully created' redirect_to :action => 'list' else render :action => 'new' end end
Creates new client.
Creates new client .