Guest User

Untitled

a guest
Apr 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. NoMethodError in Page#main
  2.  
  3. Showing weather/_weather.html.erb where line #4 raised:
  4.  
  5. undefined method `city' for #<Profile:0x2501908>
  6. Extracted source (around line #4):
  7.  
  8. 1: <ul id="weather">
  9. 2: <% unless weather.empty? %>
  10. 3: <li>
  11. 4: Weather for <strong><%= @u.profile.city %>, <%= @u.profile.state %></strong>
  12. 5: <br />
  13. 6: <strong><%= cute_day(weather[0].day) %></strong>
  14. 7: <%= weather[0].temperature %>F |
  15. Trace of template inclusion: /layouts/application.html.erb
  16.  
  17. RAILS_ROOT: /Users/allanbranch/rails/talkcarwash
  18.  
  19. Application Trace | Framework Trace | Full Trace
  20. /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in `method_missing'
  21. /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in `method_missing'
  22. app/views/weather/_weather.html.erb:4:in `_run_erb_47app47views47weather47_weather46html46erb'
  23. app/views/layouts/application.html.erb:27:in `_run_erb_47app47views47layouts47application46html46erb'
  24. Request
  25.  
  26. Parameters:
  27.  
  28. None
  29. Show session dump
  30.  
  31. Response
  32.  
  33. Headers:
  34.  
  35. {"Status"=>"200 OK",
  36. "cookie"=>[],
  37. "Cache-Control"=>"no-cache"}
Add Comment
Please, Sign In to add comment