Class: Rich::CmsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Rich::CmsController
- Defined in:
- app/controllers/rich/cms_controller.rb
Instance Method Summary collapse
Instance Method Details
#display ⇒ Object
5 6 7 8 |
# File 'app/controllers/rich/cms_controller.rb', line 5 def display (session[:rich_cms] ||= {})[:display] = params[:display] request.xhr? ? render(:nothing => true) : redirect_to(request.referrer) end |
#position ⇒ Object
10 11 12 13 |
# File 'app/controllers/rich/cms_controller.rb', line 10 def position session[:rich_cms][:position] = params[:position] render :nothing => true end |