ruby - Rails 4.0 undefined method `call' -


I have a rail app by which I am creating a highchart line graph which includes 2 industries, telecommunications and agriculture. The following are the shares, Ryan Bats Higstox Video.

The graph will be index.html.erb of an output, stock_quotes, by which the JavaScript code for the highlight is as follows:

  , Points start: <% = 2.weeks.ago.to_i * 1000%>, Data: & Lt;% = (2.weg .go.to_date..Date.today) .map {| Date | Stockquite.Price_On (date) .to_f} .inst%>}, & lt;% end% & gt;]}}}}); & lt; / div>  

The model stock_quote.rb is as follows:

  area: agric, where (category: "agriculture") area: telecommunications, where (category: "telecommunications ".def (all_price) end  

This is going to be output on the stock_quoass device:

/ P>

  $ (function () {new high charts. Chart (chart: {rendereTo: "quotes_chart"}, title: {text: "Daily Trades"}, XAxis: {type: "datetime"}, yAxis: {title: {text: "shillings"}}, tooltip: { formatter: function () {return highCharts.dateFormat ( "% B% e,% Y") This.x) + ':' + 'Kshs "+ Haicharts. Number Format (Yh.a, 2);}}, series: [{name: Telecommunications point difference: 86400000, Pointstart: 1398157330000, data [0.0, 0.0, 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.04 0.05 0.08 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 554.0]},]});});  

its Instead look:

  area: agric, where (category: "agriculture") area: telecommunications, jah (Category: "Telecommunication")  

Usage:

  Regions: - agric> -> Where (Category: "Agriculture")} Scope : Telecommunication - & gt; {ou (Category: "Telecom")}  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -