1

私は、formtasticおよびbootstrap-sass gems (とりわけ) を使用する、動作し、デプロイ可能な Rails 3.2.2 アプリケーションを持っています。mjbellantoniのバージョンは Rails 3.2 と互換性がないため、私のフォームで Twitter のブートストラップ スタイルを使用するには、 cgunther によってフォークされたformtastic -bootstrap gemを使用します。

私のGemfile:

gem 'formtastic-bootstrap', :git => 'https://github.com/cgunther/formtastic-bootstrap.git', :branch => 'bootstrap2-rails3-2-formtastic-2-1'

私のローカル マシンでは、これは期待どおりに機能しますが、アプリケーションを capistrano でデプロイすると、次のエラーが発生します。

Fetching https://github.com/cgunther/formtastic-bootstrap.git
error: The requested URL returned error: 403
fatal: Could not parse object '4e6a7f50153af805470d43a2bd2c9885a902e4a6'.
Git error: command `git reset --hard 4e6a7f50153af805470d43a2bd2c9885a902e4a6` in directory /var/www/[appname]/shared/bundle/ruby/1.9.1/bundler/gems/formtastic-bootstrap-4e6a7f50153a has failed.
If this error persists you could try removing the cache directory '/var/www/[appname]/shared/bundle/ruby/1.9.1/cache/bundler/git/formtastic-bootstrap-eabf0533be1e6746fb6d99b57db3fdd7c424275b'

formtastic-bootstrap gem のインストール中にサーバーで bundle install コマンドを実行すると、同じエラーが発生します。

誰も手がかりを持っていますか?

4

1 に答える 1

1

Gemfile で「https」を「git」に変更してみてください。それは別の宝石のために私を助けました。

于 2012-06-28T07:41:07.687 に答える