• #20 楼 @ericguo Rails users should check out:

    • twitter-bootswatch-rails if using LESS.
    • bootswatch-rails if using SASS.
  • #20 楼 @ericguo 对,两个 gem 是不太一样的!

  • @blacktulip 问题已解决,发现是 twitter-bootstrap-rails 版本的问题。3.2.0 ok ,3.2.1.rc1 和 3.2.2 报错,可能作者还没发现这个 bug 吧!

  • 最近准备找一份做 rails 开发的工作,无奈在西安除了 tw 和金数据好像再无用 rails 做开发的公司

  • 你们还在锦业路创业研发园吗?

  • 西安的顶起!

  • 这是 bootstrap_and_overrides.css.less

    // Set the correct sprite paths
    @iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png");
    @iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png");
    
    // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
    //@fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
    //@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
    //@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
    //@fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
    //@fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
    
    @font-face {
       font-family: 'Glyphicons Halflings';
       src: font-url('glyphicons-halflings-regular.eot');
       src: font-url('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
          font-url('glyphicons-halflings-regular.woff') format('woff'),
          font-url('glyphicons-halflings-regular.ttf') format('truetype'),
          font-url('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
    }
    
    // Font Awesome
    //@import "fontawesome/font-awesome";
    
    // Glyphicons
    @import "twitter/bootstrap/glyphicons.less";
    
    // Your custom LESS stylesheets goes here
    //
    // Since bootstrap was imported above you have access to its mixins which
    // you may use and inherit here
    //
    // If you'd like to override bootstrap's own variables, you can do so here as well
    // See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
    //
    // Example:
    // @link-color: #ff0000;
    
    /* Sticky footer styles
    -------------------------------------------------- */
    html {
      position: relative;
      min-height: 100%;
    }
    body {
      /* Margin bottom by footer height */
      margin-bottom: 60px;
    }
    .footer {
      position: absolute;
      bottom: 0;
      width: 100%;
      /* Set the fixed height of the footer here */
      height: 60px;
    }
    
    /* Custom page CSS
    -------------------------------------------------- */
    /* Not required for template or sticky footer method. */
    
    .footer {
      .container {
        .text-muted {
          line-height: 60px;
        }
      }
    }
    
    // Variables
    @general-margin-bottom: 15px;
    
    .mb-10 {
      margin-bottom: @user7m;
    }
    
    .navbar {
      .search-form {
        margin-top: 3px;
      }
    }
    
  • 有的

  • 重启了,我觉得会不会跟 Assets Pipeline 或者 Turbolinks 有关,还是和 ruby,rails 或者 gem 的版本有关 这是我的 Gemfile

    source 'https://ruby.taobao.org'
    
    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
    gem 'rails', '4.2.5'
    # Use sqlite3 as the database for Active Record
    gem 'sqlite3'
    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 5.0'
    # Use Uglifier as compressor for JavaScript assets
    gem 'uglifier', '>= 1.3.0'
    # Use CoffeeScript for .coffee assets and views
    gem 'coffee-rails', '~> 4.1.0'
    # See https://github.com/sstephenson/execjs#readme for more supported runtimes
    # gem 'therubyracer', platforms: :ruby
    
    # Use jquery as the JavaScript library
    gem 'jquery-rails'
    # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
    gem 'turbolinks'
    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
    gem 'jbuilder', '~> 2.0'
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', '~> 0.4.0', group: :doc
    
    # Use ActiveModel has_secure_password
    # gem 'bcrypt', '~> 3.1.7'
    
    # Bootstrap
    gem "therubyracer"
    gem "less-rails"
    gem "twitter-bootstrap-rails"
    
    # Bootswatch
    #gem 'twitter-bootswatch-rails'
    gem 'twitter-bootswatch-rails-helpers'
    
    # MetaSearch
    gem 'ransack'
    
    # Authentication
    gem 'devise'
    
    # Template Engine
    gem "haml"
    gem "liquid"
    
    # Tool
    gem 'html2haml'
    
    # Advanced
    gem "haml-rails"
    gem "liquid-rails"
    
  • 这是 railsstrap 作者的回答

    Do you have a bootstrap_and_overrides.less file? If you want to use glyphicons you need to uncomment the import statement in there. You can also set @glyphiconsEotPath to be whatever the path is to the glyphicons files should you include them in the asset pipeline.
    
  • 还是不行

  • 这个貌似没见过

  • #3 楼 @blacktulip 原先就有这几行,一样报错

  • #1 楼 @blacktulip 运行了,我用的是 simplex 这个主题主要样式文件如下:

    application.css

    /*= require_self
     *= require simplex/loader
     *= require simplex/bootswatch
     *= require bootstrap_and_overrides
     */
    

    bootstrap_and_overrides.css.less

    @font-face {
       font-family: 'Glyphicons Halflings';
       src: font-url('glyphicons-halflings-regular.eot');
       src: font-url('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
          font-url('glyphicons-halflings-regular.woff') format('woff'),
          font-url('glyphicons-halflings-regular.ttf') format('truetype'),
          font-url('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
    }
    
  • 平常用 php,ruby on rails 开发,可惜人不在广州!

  • @liwei78 3.3 以后的代码在 ruby2.2.1,rails4.2.5 下貌似都报错 variable @ glyphiconsEotPath is undefined 错误,是 gem 没更新吗?

  • #20 楼 @tingting 可否远程呢?

  • 用过 php,ruby rails,目前业余时间在学 node.js,golang,能否去贵公司试一下?

  • 为什么我们需要 Rack ? at 2015年11月29日

    回归原始,感悟中!

  • #3 楼 @shengyincan 看了你们公司的网站是做游戏的团队,用 ruby 开发内部系统吗?

  • 767563067 是你的 qq 吗?

  • 远程工作 ,怎样联系呢?