<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>freedomwait</title>
    <link>https://ruby-china.org/freedomwait</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title> run  bundle install 时出错</title>
      <description>&lt;p&gt;新建 rails 应用时，报错，（ruby 1.9.3p0，Rails 4.0.0）&lt;/p&gt;

&lt;p&gt;Gem::RemoteFetcher::FetchError: SocketError: getaddrinfo: Name or service not known (&lt;a href="https://rubygems.org/gems/sqlite3-1.3.9.gem" rel="nofollow" target="_blank"&gt;https://rubygems.org/gems/sqlite3-1.3.9.gem&lt;/a&gt;)
An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.
Make sure that &lt;code&gt;gem install sqlite3 -v '1.3.9'&lt;/code&gt; succeeds before bundling.
fengwei@fengwei-Aspire-4745G:~/rubyprojects$ gem install sqlite3
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /var/lib/gems/1.9.1 directory.&lt;/p&gt;

&lt;p&gt;看到“Make sure that &lt;code&gt;gem install sqlite3 -v '1.3.9'&lt;/code&gt; succeeds before bundling.”这一句时 我以为是 sqlite3 木有安装好，
结果我敲了：sqlite3 --version
发现是有安装的，版本信息为：3.7.15.2&lt;/p&gt;

&lt;p&gt;木有其他用户的啊，怎么会没有权限勒，有遇到相同问题的吗，求解？？&lt;/p&gt;</description>
      <author>freedomwait</author>
      <pubDate>Sun, 20 Apr 2014 23:40:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/18738</link>
      <guid>https://ruby-china.org/topics/18738</guid>
    </item>
    <item>
      <title>Can't mass-assign protected attributes: phone</title>
      <description>&lt;p&gt;提交数据的时候报错：Can't mass-assign protected attributes: phone&lt;/p&gt;

&lt;p&gt;之前的数据没有问题，用 scaffold 生成的，后来插入一个 phone:string&lt;/p&gt;

&lt;p&gt;然后：rake db:migrate&lt;/p&gt;

&lt;p&gt;在网页表单里提交 phone 的数据时就报这种错误了，请教各位错误出在哪里？怎么修改？&lt;/p&gt;

&lt;p&gt;附上我的版本：Rails 3.2.13  ruby 1.9.3&lt;/p&gt;</description>
      <author>freedomwait</author>
      <pubDate>Sat, 01 Mar 2014 23:38:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/17600</link>
      <guid>https://ruby-china.org/topics/17600</guid>
    </item>
  </channel>
</rss>
