Created
July 16, 2012 14:01
-
-
Save pankoholic/3122885 to your computer and use it in GitHub Desktop.
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
MOZILLA: | |
NoMethodError in Home#index | |
Showing /home/pankoholic/code/rehearsals/app/views/layouts/header.html.erb where line #17 raised: | |
undefined method `is_musician?' for nil:NilClass | |
Extracted source (around line #17): | |
14: <%= link_to "Sign in", "/sign_in" %> | |
15: <% end %> | |
16: </div> | |
17: <% if current_musician && current_musician.band.blank? %> | |
18: <hr/> | |
19: <div id="create_band_line" class="span-6" > | |
20: <%= link_to "Create band", edit_band_path(current_musician.band) %> | |
Trace of template inclusion: app/views/layouts/application.html.erb | |
Rails.root: /home/pankoholic/code/rehearsals | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/application_controller.rb:11:in `block (2 levels) in <class:ApplicationController>' | |
app/views/layouts/header.html.erb:17:in `_app_views_layouts_header_html_erb__72973775_92990420' | |
app/views/layouts/application.html.erb:16:in `_app_views_layouts_application_html_erb__237213784_97390590' | |
Request | |
Parameters: | |
None | |
Show session dump | |
Show env dump | |
Response | |
Headers: | |
None | |
TERMINAL: | |
Started GET "/" for 127.0.0.1 at 2012-07-16 15:56:18 +0200 | |
Processing by HomeController#index as HTML | |
Rendered home/index.html.erb within layouts/application (57.4ms) | |
Rendered layouts/header.html.erb (80.5ms) | |
Completed 500 Internal Server Error in 274ms | |
ActionView::Template::Error (undefined method `is_musician?' for nil:NilClass): | |
14: <%= link_to "Sign in", "/sign_in" %> | |
15: <% end %> | |
16: </div> | |
17: <% if current_musician && current_musician.band.blank? %> | |
18: <hr/> | |
19: <div id="create_band_line" class="span-6" > | |
20: <%= link_to "Create band", edit_band_path(current_musician.band) %> | |
app/controllers/application_controller.rb:11:in `block (2 levels) in <class:ApplicationController>' | |
app/views/layouts/header.html.erb:17:in `_app_views_layouts_header_html_erb__72973775_92990420' | |
app/views/layouts/application.html.erb:16:in `_app_views_layouts_application_html_erb__237213784_97390590' | |
Rendered /home/pankoholic/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (5.2ms) | |
Rendered /home/pankoholic/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms) | |
Rendered /home/pankoholic/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.4ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment