Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
bbs
@jiwoorico
高级会员
第 1625 位会员 / 2012-03-28

16 篇帖子 / 37 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 在 AWS 里怎么用 Ruby 创建包含 block_device_mappings 的 ami at 2015年04月15日

    解决了 谢谢

  • 在 AWS 里怎么用 Ruby 创建包含 block_device_mappings 的 ami at 2015年04月13日

    这是出错信息。。sublimetext CTRL+B 就出错了。

    C:/Ruby193/lib/ruby/gems/1.9.1/gems/aws-sdk-1.51.0/lib/aws/core/option_grammar.rb:337:in `validate': expected hash value for member 1 of option block_device_mappings (AWS::Core::OptionGrammar::FormatError)
    
  • ruby 有类似 python 把 ** 参数解析成 hash 的功能吗 at 2014年10月15日

    #7 楼 @DeathKing thanks

  • ruby 有类似 python 把 ** 参数解析成 hash 的功能吗 at 2014年10月14日

    #5 楼 @saiga 哦 这样啊。怪不得,我用的是 ruby 1.9

  • ruby 有类似 python 把 ** 参数解析成 hash 的功能吗 at 2014年10月14日

    #1 楼 @DeathKing 这个代码你那边能跑通吗? $ ruby hello.rb hello.rb:1: syntax error, unexpected tPOW, expecting ')' def print_all(*keyword_arguments)。 我要是改成一个,可以跑通。

  • ruby 有类似 python 把 ** 参数解析成 hash 的功能吗 at 2014年10月14日

    #1 楼 @DeathKing 我试试

  • ruby class 里包含另外一个 class at 2014年01月26日

    #2 楼 @edokeh 谢谢啊,我搜索得不够耐心啊。

  • 怎么用 ruby 来调用 two-legged oauth at 2014年01月14日

    解决了。谢谢

  • Partial Template 的问题 at 2013年10月31日

    #2 楼 @Rei thanks

  • 怎么改设置让 number_to_currency 怎么显示成人民币或者其他货币? at 2013年10月30日

    #3 楼 @kingwkb 我加了没用啊。

    The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.

    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de config.i18n.default_locale = 'zh-CN'

  • 怎么改设置让 number_to_currency 怎么显示成人民币或者其他货币? at 2013年10月30日

    #1 楼 @kingwkb 这句话加在哪里?

  • 一个极其好用的取色网站 at 2013年09月11日

    #5 楼 @neatpath x 人 x 心 哈哈

  • css 的问题 at 2013年09月11日

    #20 楼 @ChanceDoor 怎么可能啊?你看我之前发的截图

  • css 的问题 at 2013年09月11日

    #17 楼 @ChanceDoor 这个是可以的,现在问题是在开发者工具里可以找到。但是在右击查看网页源代码找不到。

  • css 的问题 at 2013年09月11日

    #15 楼 @ChanceDoor 其实就是最新加入购物车的那个。现在问题是我能在开发者工具的 element 看到 id 为 current_item 的 tr,但是右击查看网页源代码里找不到 current_item 这个 tr.不知道为什么?

  • css 的问题 at 2013年09月11日

    #12 楼 @nightire 开发者工具 在 元素 这里我可以看到,汗。我勾上了 在开启开发者工具的时候禁用缓存,然后再打开网页源代码,还是没有找到。汗。这到底是啥诡异?

  • css 的问题 at 2013年09月11日

  • css 的问题 at 2013年09月11日

    #9 楼 @nightire 就是右击页面,选择”查看网页源代码“啊。浏览器是 chrome 啊。我也纳闷了。

  • css 的问题 at 2013年09月11日

    #5 楼 @ChanceDoor 那是在在_line_item.html.erb 模板文件中定义的。

  • css 的问题 at 2013年09月11日

    #4 楼 @nightire 我在 console 里面打 $('#current_item') 可以找到那个 item,但是我在网页源代码里找不到 current_item 这个 id。求解释?

  • css 的问题 at 2013年09月11日

    #1 楼 @Martin91

    <% if line_item == @current_item %>

    <% else %> <% end %>

    <%= line_item.quantity %>× <%= line_item.product.title %> <%= number_to_currency(line_item.total_price) %> 这段代码是定义在_line_item.html.erb 模板文件中的。我在 console 里面打 $('#current_item') 可以找到那个 item,但是我在网页源代码里找不到 current_item 这个 id.我就是对这个不大明白。
  • couldn't find file 'jquery-ui at 2013年09月09日

    #3 楼 @chucai 可以了,谢谢

  • couldn't find file 'jquery-ui at 2013年09月09日

    #1 楼 @messiahxu source 'https://rubygems.org'

    gem 'rails', '3.2.6'

    Bundle edge Rails instead:

    gem 'rails', :git => 'git://github.com/rails/rails.git'

    gem 'sqlite3'

    Gems used only for assets and not required

    in production environments by default.

    group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3' end

    gem 'jquery-rails'

    To use ActiveModel has_secure_password

    gem 'bcrypt-ruby', '~> 3.0.0'

    To use Jbuilder templates for JSON

    gem 'jbuilder'

    Use unicorn as the app server

    gem 'unicorn'

    Deploy with Capistrano

    gem 'capistrano'

    To use debugger

    gem 'debugger'

  • redirect_to 问题 at 2013年09月09日

    #3 楼 @nightire 好的。谢谢

  • redirect_to 问题 at 2013年09月09日

    #4 楼 @rociiu 我是 windows 的,我运行 app.store_url 说认不出来

  • redirect_to 问题 at 2013年09月09日

    #1 楼 @nightire line_items GET /line_items(.:format) line_items#index POST /line_items(.:format) line_items#create w_line_item GET /line_items/new(.:format) line_items#new t_line_item GET /line_items/:id/edit(.:format) line_items#edit line_item GET /line_items/:id(.:format) line_items#show PUT /line_items/:id(.:format) line_items#update DELETE /line_items/:id(.:format) line_items#destroy carts GET /carts(.:format) carts#index POST /carts(.:format) carts#create new_cart GET /carts/new(.:format) carts#new edit_cart GET /carts/:id/edit(.:format) carts#edit cart GET /carts/:id(.:format) carts#show PUT /carts/:id(.:format) carts#update DELETE /carts/:id(.:format) carts#destroy store_index GET /store/index(.:format) store#index products GET /products(.:format) products#index POST /products(.:format) products#create new_product GET /products/new(.:format) products#new dit_product GET /products/:id/edit(.:format) products#edit product GET /products/:id(.:format) products#show PUT /products/:id(.:format) products#update DELETE /products/:id(.:format) products#destroy store / store#index 这里有 store_index 和 store,请问是指哪个?哪里规定 store_url 的指向?谢谢

  • button_to 问题 at 2013年08月22日

    #4 楼 @_kaichen 谢谢,我看下

  • button_to 问题 at 2013年08月22日

    #5 楼 @loveky 谢谢,我看看

  • button_to 问题 at 2013年08月22日

    #1 楼 @lgn21st 这个@cart是指 button_to(name = nil, options = nil, html_options = nil, &block) 这里的哪个参数?我看文档里没说有 instance 这个参数啊

  • 看不懂这几行代码 at 2013年08月16日

    #5 楼 @leomayleomay 嗯,看到了。谢谢

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