上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页
  2016年8月19日
摘要: 试了很多办法。用ss,vpn,都不行。 修改 /etc/default/docker的方式貌似在 1.12不好使了。最后找到和这个办法 http://blog.csdn.net/gsying1474/article/details/48860785 然后使用命令 一生中不知道因为被墙浪费多少时间 阅读全文
posted @ 2016-08-19 16:26 c3tc3tc3t 阅读(678) 评论(0) 推荐(0) 编辑
  2016年8月17日
摘要: 最近在看 <<the rails4 way>> 书中提到了这几个状态码,网上搜到几篇文章 http://www.cnblogs.com/cswuyg/p/3871976.html http://blog.sina.com.cn/s/blog_9bd573450101hbae.html 看完之后我总结 阅读全文
posted @ 2016-08-17 11:27 c3tc3tc3t 阅读(290) 评论(0) 推荐(0) 编辑
  2016年8月9日
摘要: 1 需要安装相关包 2 出现下面错误 * documentation : * xsltproc is missing. * fop is missing. * xmllint is missing. * The documentation can not be built. 解决 3 下面错误, o 阅读全文
posted @ 2016-08-09 17:41 c3tc3tc3t 阅读(751) 评论(0) 推荐(0) 编辑
  2016年7月26日
摘要: 命令安装: 以微软雅黑字体为例(其他的宋体、黑体等点阵字体都一样的),我们的雅黑字体文件是:Yahei.ttf(放在自己的主目录下)(在widows目录的Fonts目录下找需要的字体)由于我是双系统,我直接从Win7中复制了 msyh.ttf和msyhbd.ttf 到Ubuntu下 1在/usr/s 阅读全文
posted @ 2016-07-26 09:14 c3tc3tc3t 阅读(309) 评论(0) 推荐(0) 编辑
  2016年7月21日
摘要: 上下文说明 原本系统是15.10,无奈只支持1年,所以今天升级16.04,环境答好后运行rake migratte报错 NameError: uninitialized constant ActiveRecord::Migrator::Zlib 当时一脸蒙逼,原来代码一点没动,为何出现这个 检查一下 阅读全文
posted @ 2016-07-21 14:12 c3tc3tc3t 阅读(827) 评论(0) 推荐(0) 编辑
  2016年7月4日
摘要: 调试了很久,最后终于可以发送了 1 在config/environments/development.rb文件里配置邮件信息 config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method 阅读全文
posted @ 2016-07-04 13:18 c3tc3tc3t 阅读(211) 评论(0) 推荐(0) 编辑
  2016年6月25日
摘要: 1 在gemfile中要添加 gem 'mysql2' 2 在mysql数据库中创建三个数据库 dept_dev dept_test dept_pro 3 配置文件 阅读全文
posted @ 2016-06-25 10:03 c3tc3tc3t 阅读(600) 评论(0) 推荐(0) 编辑
  2016年6月17日
摘要: 1 通常迁移内容写在change方法中 ,但是有些迁移内容不能自动通过执行rake:rollback回滚, 所以在迁移文件里要使用 reversible 方法,告诉rails如何回滚例如下面 # coding: utf-8 class ExampleMigration < ActiveRecord: 阅读全文
posted @ 2016-06-17 16:03 c3tc3tc3t 阅读(681) 评论(0) 推荐(0) 编辑
摘要: centos7安装mysql 1 查找系统是否安装了myql rpm -q mysql mysql-server1.1如果安装了。就删除 sudo yum -y remove mysql mysql-server sudo rm -rf /etc/my.cnf 2 安装依赖 sudo yum ins 阅读全文
posted @ 2016-06-17 08:05 c3tc3tc3t 阅读(336) 评论(0) 推荐(0) 编辑
  2016年6月15日
摘要: 目录结构 database.yml 001_schema.rb customer.rb ar.rb Gemfile Rakefile 使用说明 在程序目录先执行 bundle install 1 在ruby目录执行 命令: 2 在ruby目录创建 active_record.rb 我在rubymin 阅读全文
posted @ 2016-06-15 14:43 c3tc3tc3t 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 40 下一页