Skip to content

Instantly share code, notes, and snippets.

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
bash-3.2$ brew install -v fish
[snip]
./configure --prefix=/usr/local/Cellar/fish/1.23.1 --without-xsel
checking if autoconf needs to be run... no
checking if autoheader needs to be run... no
checking for /usr/pkg/include include directory... no
checking for /usr/pkg/lib library directory... no
checking for /usr/pkg/bin command directory... no
checking for /sw/include include directory... no
checking for /sw/lib library directory... no
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:04:58-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<published>2010-11-13T15:58:39-05:00</published>
</entry>
<entry>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:08:40-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<author>Joel Taylor</author>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<published>2010-11-13T15:58:39-05:00</published>
</entry>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:12:19-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<author><name>Joel Taylor</name></author>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<published>2010-11-13T15:58:39-05:00</published>
</entry>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:13:23-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<id>http://localhost:3456/earl/viewer.php</id>
<author><name>Joel Taylor</name></author>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<published>2010-11-13T15:58:39-05:00</published>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:16:33-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<id>http://localhost:3456/earl/viewer.php</id>
<author><name>Joel Taylor</name></author>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<published>2010-11-13T16:15:44-05:00</published>
<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:17:57-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<id>http://localhost:3456/earl/viewer.php</id>
<author><name>Joel Taylor</name></author>
<title type="html"><![CDATA[/earl/logger.php]]></title>
<content type="html" xml:base="http://localhost:3456/earl/viewer.php"><![CDATA[/earl/logger.php]]></content>
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en" xml:base="http://localhost:3456/earl/viewer.php">
<id>http://localhost:3456/earl/viewer.php</id>
<title type="text">URLs that cause problems</title>
<updated>2010-11-13T16:20:22-05:00</updated>
<link rel="self" type="application/atom+xml" href="http://localhost:3456/earl/viewer.php" />
<entry>
<id>http://localhost:3456/earl/viewer.php</id>
<author><name>Joel Taylor</name></author>
DataMapper.setup(:default, "sqlite3:users.db")
class Post
include DataMapper::Resource
has n, :voters
property :id, Serial
property :user, String, :required => true
property :line, Text, :required => true