Class: TzMagic::TimeZonesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tz_magic/time_zones_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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