07 May 2013, 15:59
Generic-user-small

Adrian Lee Elder (9 posts)

Hi,

I’m currently converting my depot application to Rails 4.0 and I have ran across this error:

http://img35.imageshack.us/img35/5987/screenshot20130507at115.png

I have updated both Rails (4.0.0.rc1) and Ruby (2.0.0.p0).

I’m guessing it has something to do with the project being generated as a Rails 3.2.x project and later upgrading.

07 May 2013, 19:20
Samr_small_pragsmall

Sam Ruby (584 posts)

Try putting a space between the word cache and the open bracket.

Note that this is a Ruby syntax error, not a Rails error. Without the space, it is interpreting cache as a hash or array and isn’t quite sure what to do when it encounters the do token. Adding a space makes it a method call.

08 May 2013, 00:09
Generic-user-small

Adrian Lee Elder (9 posts)

Wow, it’s always something simple that you miss. Thanks!

  You must be logged in to comment