change belongs_to to has_one
allow static assets
upgrade rails