From: Jeremy Bopp Date: 2011-11-17T00:10:56+09:00 Subject: Re: genie.rb:20: syntax error, unexpected $end, expecting kEND On 11/16/2011 04:53, gbolahan a. wrote: > home/gbolahan/sites/spotvilla/app/models/clisting.rb:2: syntax error, > unexpected ':', expecting kEND > has_one: category > ^ Replace the above with this: has_one :category Note the new location of the colon. The has_one thing is a method and it takes a symbol as an argument. You can form a symbol by prefixing some kinds of text with a colon, so :category is a symbol that is going to be passed to the has_one method. Take note that white space is important in Ruby as with many programming languages, so make sure that you follow examples carefully. :-) -Jeremy