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

> 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">
>
>
try:

:class => "btn btn-success"

maybe its your ruby version

Javier Q

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to