小编sah*_*hil的帖子

耙子流产了!无法加载此类文件-El Capitan上的mysql2 / mysql2

从过去的两周开始,我一直在尝试在Mac上设置我的代码。以前,我使用Ubuntu,所以设置代码从未如此困难。我遵循了几乎所有教程,但没有运气。请任何人指导我在Mac上设置RoR。遵循所有教程之后,我最终只会遇到mysql错误。

rake aborted!
cannot load such file -- mysql2/mysql2
/Users/sahil/Documents/work/ccprod/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
/Users/sahil/Documents/work/ccprod/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
/Users/sahil/Documents/work/ccprod/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/sahil/Documents/work/ccprod/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
/Users/sahil/Documents/work/ccprod/vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.14/lib/mysql2.rb:8:in `<top (required)>'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
/Users/sahil/.rvm/gems/ruby-1.9.3-p551@global/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
/Users/sahil/Documents/work/ccprod/config/application.rb:9:in `<top (required)>'
/Users/sahil/Documents/work/ccprod/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Run Code Online (Sandbox Code Playgroud)

如果需要其他任何信息,请告诉我。从mysql网站安装的MySQL。额外细节:

Server version: 5.5.46 MySQL Community Server (GPL)
Run Code Online (Sandbox Code Playgroud)

更新: Gemfile.lock文件:

GIT
  remote: git://github.com/acumenbrands/acts_as_slugable.git
  revision: 51c739b8dc283483e8cb68be2f48f0742dadbf3d
  specs:
    acts_as_slugable (1.0)
      activerecord (>= 3.0.0)

GIT
  remote: git://github.com/paneq/calendar_date_select.git …
Run Code Online (Sandbox Code Playgroud)

ruby mysql macos ruby-on-rails-3

6
推荐指数
1
解决办法
5784
查看次数

为什么bootstrap在我的github网页上不起作用?

我创建了一个网页,并将其链接到cnd bootstrap扩展,但是当我启动网页时,我的布局看起来很简单并且展开了.这是该网站的链接

kellito14.github.io

这是下面的代码:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Home</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/style.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <script src="source/slider.js"></script>
  <script src="//connect.soundcloud.com/sdk.js"></script>


<script type="text/javascript">

function myradio(){
myWindow = window.open("radiopage.php", "_blank", "width=300, height=100");

 document.getElementById('radioplayer').pause();
}


</script>

</head>
<!--<body onload="javascript: myradio()" >-->
<body>

<header>
 <div class="container-fluid">
  <div class="container">
  <div class="row">
    <div class="col-md-4">
       <img src="" alt="my falcon logo" width="113" height="80">
  </div>
      <div class="col-md-4" >

  </div>
      <div class="col-md-4">
  </div>
  </div>
 </div>
</header>
<nav class="navbar">
  <div …
Run Code Online (Sandbox Code Playgroud)

html css github twitter-bootstrap mixed-content

4
推荐指数
1
解决办法
864
查看次数

无法读取谷歌图表中未定义的属性'count'

我已经使用谷歌图表很长一段时间了.昨天我尝试在我的网页上添加一个组合图表,这导致cannot read property 'count' of undefined了谷歌Chrome和b is undefinedFirefox.我一直试图解决这个问题,但直到现在还没有成功.我读到它可能是原型的原因,但其他图表仍然正常.以下是jsfiddle 上此问题的示例.

码:

  <script type="text/javascript" src="https://www.google.com/jsapi"></script>

  <div id="combochart2.1" style="width: 900px; height: 500px;"></div>

  <script type="text/javascript">
  google.load("visualization", "1", {packages:["corechart"]});

  google.setOnLoadCallback(drawChart1);

  function drawChart1() {
    var data = new google.visualization.DataTable();
    var cols = 5 ; 
    var rows = 4;
    var cell_values = new Array();
    var col_header=new Array();
    var text=new Array();
    data.addColumn('string', 'Questions');

   col_header= "apples, orange, pineapple, rocket, spaceship".split(",");
   cell_values= "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20".split(",");
   text= "Q1,Q2,Q3,Q4".split(",");

   for (var k=0;k<cols;k++)
   {
    data.addColumn('number',col_header[k]);
    }

  // Add empty …
Run Code Online (Sandbox Code Playgroud)

javascript google-visualization

3
推荐指数
1
解决办法
2889
查看次数

bootstrap中列类型的区别

我对 bootstrap 中的专栏感到非常困惑。我研究引导程序,但我无法识别列类型之间的差异。

 .col-md-4
 .col-xs-4
 .col-sm-4
 .col-lg-4
 .col-sm-offset-2
Run Code Online (Sandbox Code Playgroud)

我明白这些数字的含义。我理解 12 列,但 md、xs 之间有什么不同......

我查了多个网站,但都不太理解。如果您能给我有关它的详细信息,我将很高兴。

twitter-bootstrap

1
推荐指数
1
解决办法
2246
查看次数