def create account Account new params account if account save flash no

1
2
3
4
5
6
7
8
9
def create
@account = Account.new(params[:account])
if @account.save
flash[:notice] = 'Account was successfully created.'
redirect_to :action => 'list'
else
render :action => 'new'
end
end