i need help on this piece of code, i am new to ruby programming, i just 
applied Has_one and belongs To relationship between two models but i 
encountered this error while while trying to load the program.  i have 
tried to rollback my migrations and to migratate them again without 
success.

home/gbolahan/sites/spotvilla/app/models/clisting.rb:2: syntax error, 
unexpected ':', expecting kEND
has_one: category
        ^

Rails.root: /home/gbolahan/sites/spotvilla
Application Trace | Framework Trace | Full Trace

app/controllers/clistings_controller.rb:1

-- 
Posted via http://www.ruby-forum.com/.