Update from Rails 3.0.9 to CanCan Rails 3.1 Errors

I have an application that I am upgrading to version 3.1 from Rails 3.0.9. But I get a syntax error or something like that. It reads:

SyntaxError in BooksController # index

     

c: /Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.1.0/lib/active_record/attribute_methods/read.rb: 91: syntax error, unexpected end_word c: / Ruby192 / lib / ruby ​​/ gems / 1.9.1 / gems / activerecord-3.1.0 / lib / active_record / attribute_methods / read.rb: 93: syntax error, unexpected end of $, expecting keyword_end

     

Rails.root: c: / Users / Travis / My Documents / Aptana Studio 3 Workspace / clicknslide

     

Application Trace | Frame Track | Full trace

     

app / models / user.rb: 11: in `admin? ''

     

app / models / ability .rb: 8: in `initialize '

?

: 3.0.9

+5
2

mysql2 gem. 0.3.7 .

+4

CanCan. , MySQL2, Windows... .

+2

All Articles