app/controllers/user_controller.rb
# a couple of methods for showing server admins
# their auth token and letting them change it
a couple of methods for showing server admins
their auth token and letting them change it
a couple of methods for showing server admins their auth token and letting them change it
def show_token
    @token = current_user.authentication_token
    if @token.nil?
      flash[:alert] = "Token not available."      
      redirect_to :controller => 'info', :action => 'welcome'
    end
  end
def show_token @token = current_user . authentication_token if @token . nil? flash [ :alert ] = "Token not available." redirect_to :controller => 'info' , :action => 'welcome' end end
a couple of methods for showing server admins
their auth token and letting them change it
a couple of methods for showing server admins their auth token and letting them change it