<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>easonlovejiven (袁建贺)</title>
    <link>https://ruby-china.org/easonlovejiven</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Ruby 怎样判断一个数字是整数还是小数？</title>
      <description>&lt;p&gt;ruby 怎样判断一个数字是整数还是小数？&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Fri, 27 Feb 2015 17:55:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/24368</link>
      <guid>https://ruby-china.org/topics/24368</guid>
    </item>
    <item>
      <title>rails s 报错 Could not find erubis</title>
      <description>&lt;p&gt;新建了一个 web 项目但执行 rails s 命令时出现:
You're using Rubygems 1.8.23 with Spring. Upgrade to at least Rubygems 2.1.0 and run &lt;code&gt;gem pristine --all&lt;/code&gt; for better startup performance.
Could not find erubis-2.7.0 in any of the sources
Run &lt;code&gt;bundle install&lt;/code&gt; to install missing gems.
求解&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Thu, 26 Feb 2015 10:18:10 +0800</pubDate>
      <link>https://ruby-china.org/topics/24340</link>
      <guid>https://ruby-china.org/topics/24340</guid>
    </item>
    <item>
      <title>如何用正则表达式判断一个字符串的开头是否是数字？</title>
      <description>&lt;p&gt;用正则表达式判断一个字符串的开头是否是数字&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Thu, 12 Feb 2015 15:20:50 +0800</pubDate>
      <link>https://ruby-china.org/topics/24232</link>
      <guid>https://ruby-china.org/topics/24232</guid>
    </item>
    <item>
      <title>怎样删除字符串当中的特定字符</title>
      <description>&lt;p&gt;怎样删除字符串当中的特定字符&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Wed, 04 Feb 2015 14:03:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/24113</link>
      <guid>https://ruby-china.org/topics/24113</guid>
    </item>
    <item>
      <title>字符串数组之间的转换</title>
      <description>&lt;p&gt;怎样将字符串：str = "'a','b','c','d' ,'e'','f','g'" =&amp;gt; ary = ['a','b','c','d',......]&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Mon, 02 Feb 2015 11:08:32 +0800</pubDate>
      <link>https://ruby-china.org/topics/24064</link>
      <guid>https://ruby-china.org/topics/24064</guid>
    </item>
    <item>
      <title>Rails Migration 执行的时候遇到 wrong number of arguments (1 for 0)</title>
      <description>&lt;p&gt;求大神.......
错误信息如下:gemfile 文件的版本号已经列下了。。。但不知道是哪个版本号配置的问题
-- create_table(:users)
   -&amp;gt; 0.0296s
== 20150126025036 CreateUsers: migrated (0.0297s) =============================&lt;/p&gt;

&lt;p&gt;rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:&lt;/p&gt;

&lt;p&gt;wrong number of arguments(1 for 0)/home/weizhuli/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-4.2.0.beta4/lib/active_record/connection_adapters/abstract_adapter.rb:271:in `initialize'&lt;/p&gt;
&lt;h2 id="gemfile文件版本配置信息如下:"&gt;gemfile 文件版本配置信息如下：&lt;/h2&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0.beta4'
# Use sqlite3 as the database for Active Record
#gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '5.0.0.beta1'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '2.5.3'
# 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', '4.0.0.beta2'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks', '2.3.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '2.2.3'

gem 'rails-html-sanitizer','1.0.1'
# 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', '~&amp;gt; 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  gem 'sqlite3','1.3.9'
  # Call 'debugger' anywhere in the code to stop execution and get a debugger console

  # Access an IRB console on exception pages or by using &amp;lt;%= console %&amp;gt; in views
  gem 'web-console', '2.0.0.beta3'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring', '1.1.3'
end
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Tue, 27 Jan 2015 13:27:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/23963</link>
      <guid>https://ruby-china.org/topics/23963</guid>
    </item>
    <item>
      <title>Ruby on Rails 当中的路由具体有什么作用</title>
      <description>&lt;p&gt;ruby on rails 当中的路由具体有什么作用，，，网上查的解释的太模糊！！！求解&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Mon, 26 Jan 2015 10:29:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/23942</link>
      <guid>https://ruby-china.org/topics/23942</guid>
    </item>
    <item>
      <title>怎样交换 hash 里边儿的 key 和 value</title>
      <description>&lt;p&gt;怎样交换 hash 里边儿的 key 和 value&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Tue, 20 Jan 2015 14:59:08 +0800</pubDate>
      <link>https://ruby-china.org/topics/23835</link>
      <guid>https://ruby-china.org/topics/23835</guid>
    </item>
    <item>
      <title>怎样把一个大的 csv 文件循环分成多个 xlsx 文件</title>
      <description>&lt;p&gt;怎样把一个大的 CSV 文件循环分成多个 xlsx 文件（通过 ruby 实现）&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Tue, 20 Jan 2015 10:51:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/23827</link>
      <guid>https://ruby-china.org/topics/23827</guid>
    </item>
    <item>
      <title>怎样在 2000 个数组当中随机抽取其中的 500 个粉丝</title>
      <description>&lt;p&gt;怎样在 2000 个数组当中随机抽取其中的 500 个粉丝。。。。。谢谢&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Sun, 18 Jan 2015 09:46:18 +0800</pubDate>
      <link>https://ruby-china.org/topics/23792</link>
      <guid>https://ruby-china.org/topics/23792</guid>
    </item>
    <item>
      <title>Rails 部署，遇到 Could not find a JavaScript runtime</title>
      <description>&lt;p&gt;小今天部署 rails 环境。在 ubuntu 系统上，通过 rvm 安装的 ruby，rails，bundle。
使用 rails new demo 命令创建了一个名字为 demo 的项目，然后在 demo/script 目录下执行 rails server 命令，结果打印出了一堆错误信息:Could not find a JavaScript runtime
为什么会出现这样的错。。。。。。。。以及怎样解决。谢谢大神参与&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Tue, 13 Jan 2015 15:51:41 +0800</pubDate>
      <link>https://ruby-china.org/topics/23709</link>
      <guid>https://ruby-china.org/topics/23709</guid>
    </item>
    <item>
      <title>自己初学 Ruby on Rails 想做一个简单 Web 应用，求资料</title>
      <description>&lt;p&gt;自己初学 ruby on rails 想做一个简单的基于 ror 的简单 web 应用（对数据库的曾删该查就行）求资料，最好写的很详细。。。谢谢&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Mon, 12 Jan 2015 15:33:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/23685</link>
      <guid>https://ruby-china.org/topics/23685</guid>
    </item>
    <item>
      <title>ruby 薪资</title>
      <description>&lt;p&gt;谁能官方的说下目前 ruby on rails 工程师在业界的薪资待遇？我感觉我的太少了&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Fri, 09 Jan 2015 15:33:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/23632</link>
      <guid>https://ruby-china.org/topics/23632</guid>
    </item>
    <item>
      <title>字符创和日期之间的转换</title>
      <description>&lt;p&gt;求大神。。。str = ”12/28/14 01:51 PM“转换成 "2014-12-28 01:51:00
Date，或者 Time 类里边儿有相应的转化方法没。。。。。&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Thu, 08 Jan 2015 11:05:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/23605</link>
      <guid>https://ruby-china.org/topics/23605</guid>
    </item>
    <item>
      <title>Ruby 如何用 for 循环打印一个三角形?</title>
      <description>&lt;p&gt;用 for 循环打印一个三角形&lt;/p&gt;</description>
      <author>easonlovejiven</author>
      <pubDate>Tue, 11 Nov 2014 16:40:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/22611</link>
      <guid>https://ruby-china.org/topics/22611</guid>
    </item>
  </channel>
</rss>
