随笔分类 -  ruby

摘要:gem 'devise'rails g devise:install Userrails g devise Userrails g devise:views 阅读全文

posted @ 2016-05-24 13:29 anjuncc 阅读(131) 评论(0) 推荐(0)

摘要:bundle package #保存gem到 vendor/cache bundle install –local 从cache从安装 升级rails bundle config –delete bin rake rails:updatein git add bin rails console >> 阅读全文

posted @ 2016-05-18 17:41 anjuncc 阅读(102) 评论(0) 推荐(0)

摘要:rake -T 列出全部taskconfig.active_record.schema_format = :sql #remove the old db/schema.rb file, create db/structure.sql 阅读全文

posted @ 2016-05-05 13:48 anjuncc 阅读(185) 评论(0) 推荐(0)

摘要:symbol 不能有- 'data-turbolinks-track' => true stop rails –s kill -INT $(cat tmp/pids/server.pid) class A puts "foobar" end 装入A类时,输出foobar object.call_method === object.__send__(:call_m... 阅读全文

posted @ 2016-05-02 23:41 anjuncc 阅读(80) 评论(0) 推荐(0)

导航