开发者

Upgrading from Rails 3.0.9 to Rails 3.1 errors from CanCan

I have an application I am upgrading to 3.1 from Rails 3.0.9. But, I am getting a syntax error or something. 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 keyword_end 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, expecting keyword_end

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

Application Trace | Framework Trace | Full Trace

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

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

Any ideas?

Note: All controllers worked fine in 3.0.9


Just upgrade to latest version of mysql2 gem. In my case it is 0.3.7 now.


It has nothing to do with CanCan. It is most likely MySQL2 if using Windows...have fun trying to update.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜