title: Cannot implement lazy high chart receiving errors
body: <p>I am trying to implement lazy high charts using the following github site <a href="https://github.com/michelson/lazy_high_charts" rel="nofollow">GitHub</a> I have done the following steps</p>
  
  <ul>
  <li><p>rails plugin install git://github.com/michelson/lazy_high_charts.git</p></li>
  <li><p>@h = LazyHighCharts::HighChart.new('graph') do |f|
      f.series(:name=>'John', :data=>[3, 20, 3, 5, 4, 10, 12 ,3, 5,6,7,7,80,9,9])
      f.series(:name=>'Jane', :data=> [1, 3, 4, 3, 3, 5, 4,-46,7,8,8,9,9,0,0,9] )
    end</p></li>
  <li>&lt;%= javascript_include_tag 'highcharts' %></li>
  <li>&lt;%= high_chart("my_id", @h) %></li>
  </ul>
  
  <p>What is confusing is I reach the point where it tells you to put the code into the controller but doesn't tell you where exactly. So I tried doing some of the following and these were the results </p>
  
  <p>1) </p>
  
  <pre><code>class DashboardController &lt; ApplicationController
     access_control do
      actions :index do
        allow :Admin
      end
    end
  
   def index
     @title = "Welcome to Dashboard"
      before_filter :authenticate, :only =&gt; [:index]
    @h = LazyHighCharts::HighChart.new('graph') do |f|
      f.series(:name=&gt;'John', :data=&gt;[3, 20, 3, 5, 4, 10, 12 ,3, 5,6,7,7,80,9,9])
      f.series(:name=&gt;'Jane', :data=&gt; [1, 3, 4, 3, 3, 5, 4,-46,7,8,8,9,9,0,0,9] )
          end
       end
      end
  </code></pre>
  
  <p>Outcome = </p>
  
  <pre><code>Routing Error
  
  uninitialized constant DashboardController::LazyHighCharts
  </code></pre>
  
  <p>2)</p>
  
  <pre><code> class DashboardController::LazyHighCharts &lt; ApplicationController
    before_filter :authenticate, :only =&gt; [:index]
    @h = LazyHighCharts::HighChart.new('graph') do |f|
      f.series(:name=&gt;'John', :data=&gt;[3, 20, 3, 5, 4, 10, 12 ,3, 5,6,7,7,80,9,9])
      f.series(:name=&gt;'Jane', :data=&gt; [1, 3, 4, 3, 3, 5, 4,-46,7,8,8,9,9,0,0,9] )
    end
     access_control do
      actions :index do
        allow :Admin
      end
    end
  
    def index
     @title = "Welcome to Dashboard"
    end
  end
  </code></pre>
  
  <p><strong>View</strong> </p>
  
  <pre><code>    &lt;%= javascript_include_tag 'jquery.dataTables.min', 'datatable', 'jquery.dataTables.columnFilter'%&gt;
      &lt;%= stylesheet_link_tag 'demo_table', 'jquery-ui-1.8.4.custom' %&gt; 
      &lt;%= javascript_include_tag 'highcharts'
      &lt;div class="head"&gt;
          &lt;h1&gt;Welcome to Dashboard&lt;/h1&gt;
      &lt;/div&gt;
      &lt;div class="row"&gt;
      &lt;div class="um rollover" id="um"&gt;&lt;a&gt;&lt;center&gt;&lt;%= link_to image_tag("User.png", :alt =&gt; "User Management", :height =&gt; "100"), usermanagement_path %&gt;&lt;/center&gt;&lt;br /&gt;&lt;center&gt;User Management&lt;/center&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;div class="pm rollover" id="pm"&gt;&lt;a&gt;&lt;center&gt;&lt;%= link_to image_tag("Project.png", :alt =&gt; "Project Management", :height =&gt; "100"), projects_path %&gt;&lt;/center&gt;&lt;br /&gt;&lt;center&gt;Project Management&lt;/center&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;div class="ts rollover" id="ts"&gt;&lt;a&gt;&lt;center&gt;&lt;%= link_to image_tag("Timesheet.png", :alt =&gt; "Timesheets", :height =&gt; "100"), timesheet_path %&gt;&lt;/center&gt;&lt;br /&gt;&lt;center&gt;Timesheets&lt;/center&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;div class="crm rollover" id="crm"&gt;&lt;a&gt;&lt;center&gt;&lt;%= link_to image_tag("Customer.png", :alt =&gt; "Customer Relation Management", :height =&gt; "100"), crm_path %&gt;&lt;/center&gt;&lt;br /&gt;&lt;center&gt;Customer Relation Management&lt;/center&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;/div&gt;
  
  &lt;%= high_chart("my_id", @h) %&gt;
  </code></pre>
  
  <p>Outcome =</p>
  
  <pre><code> LoadError in DashboardController#index
  
  Expected c:/Users/patterd/documenTS/PadOnRails/app/controllers/dashboard_controller.rb to define DashboardController
  </code></pre>
  
  <p>I tried these both ways and recieved different errors. I am still new to ror and javascript, so this may seem fairly easy to the you. Is there any suggestion or any advice where I am going wrong. </p>