Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
stephen
@stephen
高级会员
第 445 位会员 / 2011-12-11

广东云浮新兴
248 篇帖子 / 672 条回帖
6 关注者
1 正在关注
173 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • rails 使用 bootstrap 出错 at 2014年03月23日

    借地问个,我在学习@Rei的 campo,我在使用 bootstrap-sass 这个 gem 的时候一直报错没变量,有遇到这个情况?! Undefined variable: "$gray-lighter". 我的 application.css.scss

    /*
     *= require font-awesome
    */
    
    
    $font-size-base: 15px;
    
    @import "bootstrap";
    @import "campo";
    
    body {
      background: #eee;
    }
    
    .text-hide-overflow {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    

    Gemfile

    # Bootstrap
    gem 'bootstrap-sass', '~> 3.1.1'
    
    # Font Awesome
    gem 'font-awesome-sass', '~> 4.0.2'
    
    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 4.0.1'
    
  • Campo 3 发布 at 2014年03月23日

    @Rei 有一些 gem 我没用过,所以用你的代码 new 了一个项目,试试这些 gem, 在 bootstrap 这个 gem,但是一直报错没变量 Undefined variable: "$gray-lighter". 我的 application.css.scss

    /*
     *= require font-awesome
    */
    
    
    $font-size-base: 15px;
    
    @import "bootstrap";
    @import "campo";
    
    body {
      background: #eee;
    }
    
    .text-hide-overflow {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    

    Gemfile

    # Bootstrap
    gem 'bootstrap-sass', '~> 3.1.1'
    
    # Font Awesome
    gem 'font-awesome-sass', '~> 4.0.2'
    
    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 4.0.1'
    
  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @dddd1919 哦哦!你是说在 nginx 配置了加!我看过!现在我都替换 css 解决了!

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @aptx4869 如何解决?

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @debugger 因为我是使用 video.js,现在打算就使用第三方的,改了 video.js 的 css 代码

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @dddd1919 这些属于静态文件,所以 rails 只会在第一次编译一次就 OK,以后也不会再编译!所以戳和第一次的都一样的!我也对过服务器上面的,也没错!

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @dddd1919 放在 images 下的文件,就算不加,都会全部编译吧!而实际情况,我的对于 woff 等文件,他是有编译的

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @dddd1919 还是不行,这个不是只加 css 和 js 的吗

  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @hozaka 是的,然后在字体放在 images 下

    @font-face {
      font-family: 'VideoJS';
      src: image-url("font/vjs.eot");
      src: image-url("font/vjs.eot?#iefix") format('embedded-opentype'), image-url("font/vjs.woff") format('woff'), image-url("font/vjs.ttf") format('truetype');
      font-weight: normal;
      font-style: normal;
    }
    
  • 部署服务器,字体文件 woff ttf 编译后上传到又拍云,出现 404 错误了! at 2014年03月20日

    @hozaka 这是肯定的,而且文件名都不用自己写或处理的啊!

  • 如何得到或创建 Youku, Tudou,等网站视频的缩略图 at 2014年03月19日

    @ono_li 提了个 issue! 请看看!

  • 有那些比较好的方式在 rails 中实现提示用户的功能 at 2014年03月18日

    @hhuai 已经提交

  • 有那些比较好的方式在 rails 中实现提示用户的功能 at 2014年03月17日

    @kai1248 @hhuai 我使用这个插件出现错误了 TypeError: 'null' is not an object (evaluating 'doc.body.appendChild') 是页面未加载完成引发的,应该是 tubolink 惹的祸! 你们是怎么解决的?

  • rails4 大家用什么表单验证插件呢?client_side_validations 好像不再维护了! at 2014年03月07日

    @Rei 谢了!

  • 从 MongoDB 迁移到 MySQL,数据大家是如何搬运的? at 2014年02月08日

    @as181920 说的对,这只涉及到需求

  • 从 MongoDB 迁移到 MySQL,数据大家是如何搬运的? at 2014年02月08日

    @jeff_duan 我也考虑是这样,只不过想知道有没有人写过类似的!

  • 从 MongoDB 迁移到 MySQL,数据大家是如何搬运的? at 2014年02月08日

    只是需求而已!没其他原因!

  • Capistrano V3 如何部署 Puma at 2014年01月30日

    @ruohanc 可以贴贴你的 capfile 和 deploy 吗?可能某一步我搞错了! 部署的时候出现这样的错误

    * Listening on unix:/home/stephen/www/mywy/shared/tmp/sockets/puma.sock
    DEBUG [a485d136]    /home/stephen/www/mywy/shared/bundle/ruby/2.1.0/gems/puma-2.6.0/lib/puma/binder.rb:270:in `initialize': No such file or directory - connect(2) for "/home/stephen/www/mywy/shared/tmp/sockets/puma.sock" (Errno::ENOENT)
    DEBUG [a485d136]    * Listening on unix:/home/stephen/www/mywy/shared/tmp/sockets/puma.sock
    
  • Capistrano V3 如何部署 Puma at 2014年01月30日

    @ruohanc 我现在使用遇到不少坑!你有一些使用参考教程?

  • ruby 银联支付接口 at 2013年12月20日

    支持

  • 管理系统用户和子用户的设计 at 2013年12月05日

    @chunlea 好像很复杂,很恐惧!

  • lazy_high_charts 不能 ajax 获取 json 作为数据? at 2013年11月27日

    @xds2000 是的,没必要用,直接上 js,果断改过

  • 《agile web development with rails》里的购物车 at 2013年11月27日

    @QueXuQ 目前来说,应该是吧,想象中,应该是 cookie 过期就通知服务器删除数据,buy,暂时还未能做到把!

  • lazy_high_charts 不能 ajax 获取 json 作为数据? at 2013年11月27日

    @chucai 是新版本,就是文档找不到!

  • 《agile web development with rails》里的购物车 at 2013年11月27日

    @QueXuQ 一般都是用 cookie+ 数据库模拟 session 的!不会只用 session!本地浏览器保存一个 cookie 用于记录数据库 cart 的 id,把商品数据保存在数据库里!定时清理数据库过期的 cart 数据!当本地 cookie

  • 深圳 Rubyist 交流 QQ (500 人) 群:304583296,欢迎加入! at 2013年11月26日

    只限深圳?

  • 上一页
  • 1
  • 2
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 21
  • 22
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English