#10 楼 @jeremy16601 cat /Users/xueqingli/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/gems/2.0.0/gems/pg-0.16.0/ext/gem_make.out
brew install postgresql
你确定安装了 PostgreSQL ?
git commit -am "已阅"
让我想起 @vpnclond 云梯 MM
不要问我是谁 , 我的名字叫雷锋 . http://mozilla.github.io/pdf.js .
仅参考 :
js 和 css 放到 assets 目录的相应目录 .datetime_select 改为 text_field , 并添加一个 :class => 'datetimepicker'
application.js.coffee 添加 $ -> $('.datetimepicker').datetimepicker()
其他要求多看看 : http://tarruda.github.io/bootstrap-datetimepicker , 上面写的很清楚 .
代码临时写的 , 不要完全复制 .
<input type='date' />
适可而止吧 , 别在技术领域越陷越深 , 代码什么的交给我们吧~ , 你来做 Boss .
Gmail , Github , DropBox , DigitalOcean 都已设置 .
#4 楼 @small_fish__ 我倒是觉得无论任何网站 , 不管账号是否重要 , 网站对用户资料负责任是最基本的 .用户使用你的网站是对你的信任 , 你也理应报以尊重 . 任何使用明文存储密码的网站都是不道德的 .
强烈建议 Ruby-China 使用 HTTPS 协议 + 2fa (Two-step_verification) .
<%= f.collection_select :users, Users.all, :id, :username, { :prompt => 'Select a user' } %>
#2 楼 @u1378130755 额 , Rails App 指的是 Rails 程序, 并不是 Mobile App .
在你原来的 PHP 入口 (index.php) 用 js 做 userAgent 判断 , 知道是什么类型的设备 , 如果是移动设备重定向到 m.xxx.cn 的 Rails AppRails 网站 .
nested_formhttps://github.com/ryanb/nested_form
#10 楼 @willmouse cool~