.zshrc 那段,其实安装 rvm 的时候应该就已经配置上了。
https://rvm.io/rvm/install#3-reload-shell-configuration-amp-test
Faker::Name.name
这个还是有机会出现重复的,不够 random。
ao 很无辜啊
以前遇到过 ruby 的 bug 提示,最终都是代码问题,跟 ruby 没关系。
@nuc093
有两个问题,第一个问题是拼写错误,把null_session拼成了seesion
另外一个问题,模板文件的位置错了,应该在 views 文件夹下。
@lgn21st 你是对的。
刚尝试了一下 rails 4.2.2 已经支持rails new myapp --api
而且 rails-api 的官方文档也说 IMPORTANT: Rails::API has been merged into Rails
http://guides.rubyonrails.org/4_2_release_notes.html
respond_with and the corresponding class-level respond_to have been moved to the responders gem. Add gem 'responders', '~> 2.0' to your Gemfile to use it:
别搬回来了
可以限制用户执行这个方法
尝试用 rails 的命令行重新创建数据库。
rake db:drop RAILS_ENV=production
rake db:migrate RAILS_ENV=production
heroku
拉出去把 DD 切了
485062
@iml6yu 使用 devise 即可,两者都可实现 https://github.com/plataformatec/devise
有人建议我用一部分钱去 lobby 中国政府把 Github 彻底封了……
帮我问候他家所有人!
可以啊。 用 byebug https://github.com/deivid-rodriguez/byebug
修改成 https
append 两个文件 修改一个文件 新增一个文件
@string2020 then, reboot your system.
you may try
rvm reset
超级赞的公司
class AddIndexToUsersEmail < ActiveRecord::Migration
def change
add_index :users, :studentsid
add_index :users, :email
end
end
add_index 没有指定 table_name
就差一天就用上了,最后用了 ransack