Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails 4.1:Can';t生成控制器,获取';捆绑安装';错误_Ruby On Rails_Ruby_Twitter Bootstrap_Ruby On Rails 4 - Fatal编程技术网

Ruby on rails Rails 4.1:Can';t生成控制器,获取';捆绑安装';错误

Ruby on rails Rails 4.1:Can';t生成控制器,获取';捆绑安装';错误,ruby-on-rails,ruby,twitter-bootstrap,ruby-on-rails-4,Ruby On Rails,Ruby,Twitter Bootstrap,Ruby On Rails 4,因此,我尝试使用omniauth添加facebook身份验证,并注意到我无法使用 rails generate controller Sessions new create destroy 因为我收到以下错误消息: Could not find bootstrap-sass-3.2.0.2 in any of the sources Run `bundle install` to install missing gems. 我尝试过卸载和重新安装不同版本的gem,运行bundle更新等,但没

因此,我尝试使用omniauth添加facebook身份验证,并注意到我无法使用

rails generate controller Sessions new create destroy
因为我收到以下错误消息:

Could not find bootstrap-sass-3.2.0.2 in any of the sources
Run `bundle install` to install missing gems.
我尝试过卸载和重新安装不同版本的gem,运行bundle更新等,但没有成功。 我运行的是rails 4.1.5,使用的是ruby 2.1.2。 以下是我的文件中的当前行:

gem 'bootstrap-sass', '~> 3.2.0 
我在应用程序的目录中,已尝试使用bundle exec运行命令,但没有更改。

使用以下命令运行命令:


这将确保您的所有捆绑gem都可供Rails使用。

没有足够的信誉使其成为评论。。。但你的宝石系列似乎缺少一个报价。应该是:

gem 'bootstrap-sass', '~> 3.2.0'

您可能需要关闭所有弹簧:

myapp swards$ ps aux | grep spring

swards     46617   0.1  0.3  2478996  22112   ??  Ss    1:27AM   0:00.57 spring app    | my-app | started 2 mins ago | development mode    
swards     46632   0.0  0.0  2442000    648 s002  S+    1:30AM   0:00.00 grep spring
swards     45116   0.0  0.2  2504588  15332 s002  S    10:55PM   0:00.30 spring server | my-app | started 2 hours ago   

myapp swards$ kill 46617 
myapp swards$ kill 45116

应该补充一点,我已经尝试使用bundle exec,没有任何更改。我现在就编辑。捆绑包安装后您会得到什么?它是否为您安装引导sass?Bundle安装和Bundle更新都成功运行,并且我有正确的gem和版本。
myapp swards$ ps aux | grep spring

swards     46617   0.1  0.3  2478996  22112   ??  Ss    1:27AM   0:00.57 spring app    | my-app | started 2 mins ago | development mode    
swards     46632   0.0  0.0  2442000    648 s002  S+    1:30AM   0:00.00 grep spring
swards     45116   0.0  0.2  2504588  15332 s002  S    10:55PM   0:00.30 spring server | my-app | started 2 hours ago   

myapp swards$ kill 46617 
myapp swards$ kill 45116