Published in: Rails
def login @page_title = 'Publisher login' if request.post? && publisher = Publisher.check(params[:publisher][:name], params[:publisher][:password]) flash[:notice] = "#{publisher.name} was successfully logged in!" redirect_to :action => 'index' else flash.now[:notice] = "Please login!" end end
You need to login to post a comment.
