I get this error in view:
SyntaxError in PublicController#fast
C:/Rails/konkurranceportalen/app/controllers/public_controller.rb:11: syntax error, unexpected tASSOC, expecting keyword_end
@titel => 'Heading'
^\
My action in my controller:
def fast
render :template => 'kategoris/show', :layout => 'kategori'
@titel => 'Heading'
@konkurrancers = Konkurrancer.where('type', 'nyhedsbrev')
end
You just want
@titel = 'Heading'.=>is for buildingHashes, as in `foo = {:a => 1, :b => “bar”}