Created
June 23, 2011 14:14
-
-
Save johndavid400/1042615 to your computer and use it in GitHub Desktop.
no mehtod upcase?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in Stocks#index | |
Showing /home/jd/isotope/dividend_reporter/app/views/stocks/index.html.erb where line #13 raised: | |
undefined method `upcase' for nil:NilClass | |
Extracted source (around line #13): | |
10: | |
11: <% @stocks.each do |stock| %> | |
12: <tr> | |
13: <td><%= link_to @quotes[stock.symbol.upcase].symbol, stock %></td> | |
14: <td><%= @quotes[stock.symbol.upcase].name %></td> | |
15: <td><%= @quotes[stock.symbol.upcase].lastTrade %></td> | |
16: <td><%= @quotes_ext[stock.symbol.upcase].dividendPerShare %></td> | |
Rails.root: /home/jd/isotope/dividend_reporter | |
Application Trace | Framework Trace | Full Trace | |
app/views/stocks/index.html.erb:13:in `block in _app_views_stocks_index_html_erb__1275561124624245974_33415680_2273465482082668600' | |
app/views/stocks/index.html.erb:11:in `each' | |
app/views/stocks/index.html.erb:11:in `_app_views_stocks_index_html_erb__1275561124624245974_33415680_2273465482082668600' | |
app/controllers/stocks_controller.rb:9:in `index' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment