Designating CSS class throwing error?

For some reason getting this error. Following a tutorial step by step.
Why would the added "class: “btn ect” be the problem?

compile error
syntax error, unexpected ‘:’
…atus", new_status_path, class: “btn btn-success” );@output_b
syntax error, unexpected kDO_BLOCK, expecting kEND
'); @statuses.each do | status|
syntax error, unexpected kENSURE, expecting $end

All of the Statuses

3: 4: 5: <%= link_to "Post a New Status", new_status_path, class: "btn btn-success" %> 6: 7: <% @statuses.each do | status| %>


On Mon, Oct 8, 2012 at 9:05 PM, wragen22 [email protected] wrote:

/Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:21: syntax
error, unexpected kENSURE, expecting $end


:class => “btn btn-success”

maybe its your ruby version

Javier Q

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs