﻿def create
  @author = Author.new(params[:author])
  if @author.save
    flash[:notice] = 'Pomyślnie dodano nowego autora.'
    redirect_to :action => 'list'
  else    
    flash[:notice] = 'Dodanie autora nie powiodło się.'
    render :action => 'new'
  end
end