# class ResearchController

### Public Instance Methods

create() click to toggle source

    # File app/controllers/research_controller.rb, line 7
    def create
      @ticker = params[:ticker].upcase
      @data_simple = YahooFinance::get_graph_data(@ticker)
      @data_candlestick = YahooFinance::get_candlestick_data(@ticker)
      @data_now = YahooFinance::get_standard_quotes(@ticker)[@ticker]
      @current_user = current_user;

      @league_portfolios = Array.new;

      @current_user.leagues.each do |league|
          portfolio = Portfolio.where(:user_id => @current_user.id, :league_id => league).first;
          @league_portfolios.push({:league => league, :portfolio => portfolio});
      end

    end

index() click to toggle source

    # File app/controllers/research_controller.rb, line 3
    def index

    end