4 ms·
What does this controller do? Did you delete the code that used to be there? http://github.com/holman/facelette/blob/master/app/controllers/application_control
by adammichaelc 16y ago
What does this controller do? Did you delete the code that used to be there?
http://github.com/holman/facelette/blob/master/app/controllers/application_controller.rb http://github.com/holman/facelette/blob/master/app/controlle...
- holman 16y agoApplicationController 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...