Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NoMethodError in Page#main
- Showing weather/_weather.html.erb where line #4 raised:
- undefined method `city' for #<Profile:0x2501908>
- Extracted source (around line #4):
- 1: <ul id="weather">
- 2: <% unless weather.empty? %>
- 3: <li>
- 4: Weather for <strong><%= @u.profile.city %>, <%= @u.profile.state %></strong>
- 5: <br />
- 6: <strong><%= cute_day(weather[0].day) %></strong>
- 7: <%= weather[0].temperature %>F |
- Trace of template inclusion: /layouts/application.html.erb
- RAILS_ROOT: /Users/allanbranch/rails/talkcarwash
- Application Trace | Framework Trace | Full Trace
- /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in `method_missing'
- /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/associations/association_proxy.rb:125:in `method_missing'
- app/views/weather/_weather.html.erb:4:in `_run_erb_47app47views47weather47_weather46html46erb'
- app/views/layouts/application.html.erb:27:in `_run_erb_47app47views47layouts47application46html46erb'
- Request
- Parameters:
- None
- Show session dump
- Response
- Headers:
- {"Status"=>"200 OK",
- "cookie"=>[],
- "Cache-Control"=>"no-cache"}
Add Comment
Please, Sign In to add comment