0

I'm following the following tutorial:

http://railscasts.com/episodes/188-declarative-authorization?view=comments

Also Had a go at following the documentation for the gem on Git:

https://github.com/stffn/declarative_authorization

But had the same outcome both times which is:

mark@ubuntu:~/RoR Projects/blog$ sudo rake gems:install
Invalid gemspec in [/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z"
rake aborted!
undefined local variable or method `config' for #Bundler::Dsl:0x7fe2598d56d8>

I have followed each tutorial to the letter but keep getting the same output so I'm guessing this is a system issue at my end?

4

1 回答 1

1

看起来您正在使用 rails 的旧方式(之前bundler)包含 gem,但正在使用bundlerGemfile

添加gem "declarative_authorization"到您的Gemfile,它应该按预期工作。

于 2012-11-02T21:17:37.180 回答