Monday, October 8, 2012

[Rails] 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  /Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:5: syntax error, unexpected ':'  ...atus", new_status_path, class: "btn btn-success" );@output_b...                                ^  /Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND  '); @statuses.each do | status|                        ^  /Users/bradwrage/webapps/treebook/app/views/statuses/index.html.erb:21: syntax error, unexpected kENSURE, expecting $end

<h1> All of the Statuses</h1>  3: </div>  4:   5: <%= link_to "Post a New Status", new_status_path, class: "btn btn-success" %>  6:   7: <% @statuses.each do | status| %> 
8: <div class="status"> 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/CATC2BdUhrsJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate