# Filters added to this controller apply to all controllers in the application.# Likewise, all the methods added will be available for all controllers.class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you're not using the cookie session store protect_from_forgery # :secret => '2c4f23f25ede9963a4b26445f170076f' # Pick a unique cookie name to distinguish our session data from others' session :session_key => '_gateway_session_id' def userinterface @userinterface.device = "mouse" endend