3 ms·
ApplicationController is sort of the general controller Rails generates that all your other controllers inherit from. Facelette is so simplistic I didn't need t
by holman 16y ago
ApplicationController is sort of the general controller Rails generates that all your other controllers inherit from. Facelette is so simplistic I didn't need to dig into it at all.
- adammichaelc 16y agoSo what does the protect_from_forgery statement do? I've never seen that before.
- holman 16y agoI believe it was added in 2.3. It protects against CSRF attacks: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html http://api.rubyonrails.org/classes/ActionController/RequestF...