Class: TzMagic::TimeZonesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- TzMagic::TimeZonesController
- Defined in:
- app/controllers/tz_magic/time_zones_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/tz_magic/time_zones_controller.rb', line 6 def create session[:timezone] = params[:timezone_name] forward_to = session[:timezone_return_to] || root_path render :json => {:forward_to => forward_to } end |