# class StaticPagesController

### Public Instance Methods

about() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 28
    def about
      @title = "About"
    end

contact() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 39
    def contact
      @title = "Contact Us"
    end

dashboard() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 10
    def dashboard
      if !current_user
        redirect_to root_path
      end
      @title = "Dashboard"
    end

help() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 32
    def help
      if !current_user
        redirect_to root_path
      end
      @title = "Help and FAQ"
    end

home() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 2
    def home
      #If the user is signed in, redirect to the dashboard
      if current_user
        redirect_to dashboard_path
      end
          @title = "Home"
    end

learn() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 17
    def learn
      @title = "Learn"
    end

permission_denied() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 43
    def permission_denied
      @title = "Permission denied"
    end

settings() click to toggle source

    # File app/controllers/static_pages_controller.rb, line 21
    def settings
      if !current_user
        redirect_to root_path
      end
      @title = "My settings"
    end