nottrobin

rails4-application-controller

Oct 18th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ApplicationController < ActionController::Base
  2.   # Prevent CSRF attacks by raising an exception.
  3.   # For APIs, you may want to use :null_session instead.
  4.   protect_from_forgery with: :exception
  5.  
  6.   def index
  7.       render text: "Hello World"
  8.   end
  9. end
Add Comment
Please, Sign In to add comment