module Caboose class StationController < ApplicationController layout 'caboose/modal' # GET /station def index @user = logged_in_user end # GET /station/plugin-count def plugin_count render :json => Caboose::plugins.count end # PUT /admin/station def index_admin session[:caboose_station_state] = params[:state] session[:caboose_station_open_tabs] = params[:open_tabs] session[:caboose_station_return_url] = params[:return_url] render :json => true end end end