Sha256: e03c77d96bb8dcef4123dee1553e3981427aaeba71fdd3869d5405428c858f00
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception def index end def form_submit sleep 2 redirect_to root_url end def news end def pure end def notice_example flash[:notice] = "This is a notice message.<br>It can be <i>long</i> and include <b>basic</b> HTML." redirect_to root_url end def alert_example flash[:alert] = "This is an alert message" redirect_to root_url end end
Version data entries
5 entries across 5 versions & 1 rubygems