Ruby之道
文章平均质量分 55
Tindle Wei
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ruby——生成文档
生成HTML格式的文档 rake doc:app 检查编写的代码量 rake stats mactekiMacBook-Pro-3:depot mac$ rake doc:app rm -r doc/app Parsing sources... 100% [26/26] app/models/user.rb Generati原创 2015-01-21 23:03:30 · 1117 阅读 · 0 评论 -
Ruby—My First Real Ruby Website
这虽然不是我的第一个作品,但是算是正式上线的Ruby网站。 Welcom To My Ruby Website : https://menkey-league.herokuapp.com/about原创 2015-01-27 01:13:38 · 628 阅读 · 0 评论 -
Ruby—关于Button跳转
这里有两种可以用的: 1. New Post'.html_safe, product_path %> 2.New Post »原创 2015-01-27 21:52:50 · 1533 阅读 · 0 评论 -
Ruby——Mac下配置Apache
与Linux不同,Mac文件夹没有 /etc/httpd/conf/httpd.conf 但存在 /etc/apache2/httpd.conf etc/apache2/extra/httpd-vhosts.conf Mac OS 近年苹果的雄起, 让 Mac 日催普及, 也成为很多开发人员的选择. 因为与 Linux 同源, 配置方法也相似. 1.原创 2015-01-21 21:19:10 · 740 阅读 · 0 评论 -
Ruby—在Heroku上部署Rails4
这里是 Heroku部署官方文档: 下面是部署的步骤: 建立仓库: $ cd my_demo_name $ git init $ git add . $ git commit -m "first commit" 检查git状态 $ git status 登录heroku $ heroku login // 输入 $ email: $ password:原创 2015-01-24 22:24:21 · 898 阅读 · 0 评论 -
Ruby——在Rails上使用Bootstrap
首先, Download Bootstrap Copy: bootstrap/dist/css/bootstrap.css and bootstrap/dist/css/bootstrap.min.css To: vendor/assets/stylesheets Copy: bootstrap/dist/js/boots原创 2015-01-23 12:18:04 · 1960 阅读 · 0 评论 -
Ruby:The provided regular expression is using multiline anchors (^ or $), which may present a securi
Ruby 从3.0到4.0 validates 正则表达式 check_options_validity': The provided regular expression is using multiline anchors (^ or $) rails4中validates不支持 ^ 和 $ , 替换成\A 和 \z - ACCOUNT_EMAIL_FORMAT原创 2015-01-19 12:27:12 · 1338 阅读 · 0 评论 -
Ruby—Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (61)
问题出现: 直接导github上的ruby项目,在bundle install之后,rails server出现错误 Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine. 解决方法: Mac上安装的默认sqlite3 所以,先安装 brew install mysql 再安装 g原创 2015-01-22 20:25:50 · 3012 阅读 · 0 评论
分享