Class: CookiesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- CookiesController
- Defined in:
- app/controllers/cookies.rb
Instance Method Summary collapse
Instance Method Details
#accept ⇒ Object
2 3 4 5 |
# File 'app/controllers/cookies.rb', line 2 def accept [:cookiesOK] = {value: "x", expires: 1.month.from_now} redirect_to("/") end |
#customize ⇒ Object
12 13 14 |
# File 'app/controllers/cookies.rb', line 12 def customize raise "Define your own CookiesController#customize" end |
#reject ⇒ Object
7 8 9 10 |
# File 'app/controllers/cookies.rb', line 7 def reject .delete(:cookiesOK) redirect_to("/") end |