开发者

Rails 3.1 engine rake task doesnt work

开发者 https://www.devze.com 2023-03-08 10:21 出处:网络
I created a new engine with Rails 3.1.rc1 ➜ (ruby-1.9.2-p180@rails3-pre) rails git:(master) be bin/rails plugin new ../first_engine --mountable

I created a new engine with Rails 3.1.rc1

➜ (ruby-1.9.2-p180@rails3-pre) rails git:(master) be bin/rails plugin new ../first_engine --mountable
rails g scaffold project title:string

Scaffold is generated and now when I run

bundle exec rake db:migrate

I get the following error:

rake aborted!
Don't know how to build ta开发者_开发知识库sk 'app:db:migrate'

Tasks: TOP => db:migrate

Before rc1, it was working. But what happened now? I couldn't figure it out!

Here is the gist with all the steps and backtraces https://gist.github.com/990641 Can anyone put me the right direction?


In you Gemfile or RVM Global Gemset file. Change rake to include the version. e.g.

gem 'rake', '0.8.7'

Just using rake will not work until Rails comes out with a fix. Let us know how you get on. All the best.

0

精彩评论

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