Skip to content

Instantly share code, notes, and snippets.

@pikajude
Created July 3, 2010 19:47
Show Gist options
  • Save pikajude/462788 to your computer and use it in GitHub Desktop.
Save pikajude/462788 to your computer and use it in GitHub Desktop.
ArgumentError in Users#show
Showing /Users/jdt/narc/app/views/layouts/application.html.haml where line #15 raised:
wrong number of arguments (1 for 0)
Extracted source (around line #15):
= yield(:head) %body #container - if current_user %p= raw("Logged in as #{current_user.login} | #{link_to 'Edit profile', "/users/#{current_user.login}/edit"}") %h2= link_to "NARC", :root
Rails.root: /Users/jdt/narc
Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:15:in `current_user_session'
app/controllers/application_controller.rb:20:in `current_user'
app/views/layouts/application.html.haml:15
Request
Parameters:
{"id"=>"1"}
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment