From: "Luca (Email)" Date: 2011-12-29T15:49:19+09:00 Subject: I: genie.rb:20: syntax error, unexpected $end, expecting kEND -----Messaggio originale----- Da: Jeremy Bopp [mailto:jeremy@bopp.net] Inviato: mercoledì 16 novembre 2011 16:11 A: ruby-talk ML Oggetto: 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 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Capodanno a Riccione, Pacchetto Relax: Mezza Pensione + bagno turco + solarium + massaggio. Wifi e parcheggio gratis. 2 giorni euro 199 a persona Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid978&d)-12