Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
lentg
@lentg
高级会员
第 2598 位会员 / 2012-06-19

6 篇帖子 / 45 条回帖
0 关注者
0 正在关注
2 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 请教 jQuery 插件 ColorBox 的问题 at 2013年07月19日

    #3 楼 @luikore 还是搞不定,不知是怎么回事,去掉 turbolinks 就没问题了。

  • 请教 jQuery 插件 ColorBox 的问题 at 2013年07月18日

    #1 楼 @luikore $(document).ready start $(document).on 'page:load', start class App.help --constructor: -> ----$('#message_lights').chosen() ----$('.group2').colorbox({rel:'group2', transition:"fade", width:"75%"}) ----alert 'run' 每次点点击页面都有正常运行 alert 'run',可是 ColorBox 就是不能使用,除非刷新页面,ColorBox 就工作一次。

  • 开发模式下,修改文件,浏览器下不生效 at 2013年06月20日

    #8 楼 @ericguo #9 楼 @Rei #10 楼 @lainuo 比如修改了 PostsController 下的 create 方法,就算你把语法弄错了,然后刷新浏览器或换浏览器打开,都只运行之前的 create 方法,不显错。Coffeescript 也一样,还有项目在开发模式运行中,PostsHelper 中新增辅助方法,然后在页面刷新会出现“没有这么方法”。

  • 开发模式下,修改文件,浏览器下不生效 at 2013年06月20日

    #10 楼 @lainuo 切换了 IE && Firefox 也是同样的问题。重起服务就好了。新项目没修改配置也会这样,目前猜想可能是系统原因。

  • 开发模式下,修改文件,浏览器下不生效 at 2013年06月20日

    #5 楼 @ericguo #8 楼 @ericguo #9 楼 @Rei 用 webrick 度过了,也一样。而且是个新项目,也出现这问题

  • 开发模式下,修改文件,浏览器下不生效 at 2013年06月17日

    #3 楼 @iBachue 调试 ActiveSupport::FileUpdateChecker 这个类的 updated?方法,这点不会。

  • 开发模式下,修改文件,浏览器下不生效 at 2013年06月17日

    #1 楼 @iBachue development.rb 配置 config.cache_classes = false/true都试过了,还是一样。还有修改coffeescript文件也不生效。

  • [福利] 七牛新后台上线 携手 Ruby China 放送现金券 at 2013年06月05日

    [email protected]

  • 突然对 Capistrano 部署很感兴趣 at 2012年12月14日

    https://github.com/railscasts/335-deploying-to-a-vps https://github.com/railscasts/337-capistrano-recipes 一键部署。

  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月14日

    #9 楼 @fresh_fish #8 楼 @luikore 我知道问题所在了,就是 Bootstrap 里的这条规则,

    img {
      /* Responsive images (ensure images don't scale beyond their parents) */
      max-width: 100%;
      /* Part 1: Set a maxium relative to the parent */
      width: auto\9;  /*问题就出现在这行规则上,删除了就好的*/
      /* IE7-8 need help adjusting responsive images */
      height: auto;
      /* Part 2: Scale the height according to the width, otherwise you get stretching */
      vertical-align: middle;
      border: 0;
      -ms-interpolation-mode: bicubic;
    }
    

    img{width: auto\9;},请问如果不删除这规则,要怎么覆盖呢?

    .details img{
      width: ????;
    }
    
  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月13日

    #8 楼 @luikore #9 楼 @fresh_fish 现在在家里,没办法试验,家里本本的 Win 没配置 Rails 环境,linux 没配置 IE 相关,明天看看,总觉得用 JS 控制不是很理想。

  • rails 中使用 Ueditor at 2012年12月13日

    #16 楼 @fresh_fish 用 bootstrap 后,在 IE 里 img 标签 width & height 失效 是怎么回事啊?应该怎么解决?帮帮忙啊

  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月13日

    #5 楼 @luikore 用 bootstrap 后,在 IE 里 img 标签 width & height 失效 是怎么回事啊?应该怎么解决?帮帮忙啊

  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月13日

    那是在 KindEditor 里插入图片,填写属性,如果写 style,那就要在 html code 里添加,如果图片多的话,一个个地添加修改也不好啊。是不是某个地方出问题才会这样的啊?可是在百度 GG 上都没找到对应的。

  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月13日

    #1 楼 @luikore 呃,有这么麻烦的?而且每次都运行 JS 也不是办法啊?

  • IE 用了 bootstrap 后的图片尺寸问题 at 2012年12月13日

    #1 楼 @luikore 这是 kindeditor 上传进来的图片,尺寸不一,css 里是能锁定大小,可是不适合在这里使用。

  • rails 中使用 Ueditor at 2012年12月11日

    就是 kindeditor 用着不爽,才换的。百度的很不错啊。

  • rails 中使用 Ueditor at 2012年12月11日

    感谢...

  • rails 中使用 Ueditor at 2012年12月11日

    上传了https://github.com/lentg/iipet

  • rails 中使用 Ueditor at 2012年12月11日

    好的,等等啊

  • rails 中使用 Ueditor at 2012年12月11日

    导入 'editor_all', 'editor_config'后,它会自己导入两个文件,zh-cn.js 和 ueditor.css 而这两个文件它导入的路径不是 assets 下的,就无法读取了。

  • rails 中使用 Ueditor at 2012年12月11日

    能不能帮我想想怎么把百度编辑器 1.2.4 引入 rails 中,谢谢。

  • 如何修改 Sublime 中 Ruby Slim 的语法文件? at 2012年12月11日

    安装 jade,然后修改 jade 的\Sublime Text 2\Packages\Jade\Syntaxes\Jade.tmLanguage 文件
    ·<·array·>· ·<·string·>jade</·string·>· ·<·string·>slim</·string·>· ·</·array·>· 就增加 ·<·string·>slim</·string·>· 卸载 slim

  • rails 中使用 Ueditor at 2012年12月11日

    #4 楼 @fresh_fish 大侠,我还是没弄出来,拷贝了你的 huanarle,vendor/assets 目录,来做也出错了。

  • rails 中使用 Ueditor at 2012年12月11日

    #4 楼 @fresh_fish 如果不拆开,就把在 ueditor 目录里面,一导入//= require ueditor/editor_all //= require ueditor/editor_config,然后 new UE.ui.Editor() 就出错了(1.2.4 版的百度编辑器)。

  • rails 中使用 Ueditor at 2012年12月11日

    #1 楼 @fresh_fish 进去了,也体验了一下,很不错,怎么集成的啊?求助。

  • Coffee script & Javascript 结构与组织 at 2012年12月06日

    #14 楼 @doitian

      desc "Symlink the data directory" # 数据存储目录
      task :symlink_upload, :except => {:no_release => true} do
        run "mkdir -p #{shared_path}/u/book"
        run "mkdir -p #{shared_path}/u/video"
        run "mkdir -p #{shared_path}/u/tmp"
        %w[l m s].each { |v| run "mkdir -p #{shared_path}/u/images/#{v}" }
        %w[l m s].each { |v| run "mkdir -p #{shared_path}/u/thumb/#{v}" }
    
        run "ln -nfs #{shared_path}/u #{release_path}/public/u"
      end
      after 'deploy:update_code', 'deploy:symlink_upload'
    
  • Coffee script & Javascript 结构与组织 at 2012年12月06日

    #14 楼 @doitian 嗯,谢谢,现在解决了,得多谢你了。不过现在还是问题多多啊。比如:http://106.187.101.190/u/images/s/ZQ%20106/1.jpg http://106.187.101.190/u/images/m/ZQ%20106/1.jpg http://106.187.101.190/u/images/l/ZQ%20106/1.jpg 上面这三个链接怎么只能打开两个,第三个链接打不开?

  • Coffee script & Javascript 结构与组织 at 2012年12月04日

    好的,谢谢,有个方向就容易了。3Q

  • Coffee script & Javascript 结构与组织 at 2012年12月04日

    #9 楼 @doitian 这个问题解决了,谢谢你。现在我还有一个问题请教你,就是用 capistrano 来部署成功后,修改了代码"git push"后,运行"cap deploy"成功后,更改生效,可是在项目根目录下的 public/upload 目录里的文件为什么每次都清空删除的?该怎么做才不会删除上传的文件?请求帮忙一下。

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