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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.