![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rails
iteye_2629
这个作者很懒,什么都没留下…
展开
-
rails部署(nginx+Phusion Passenger)
#转战centos一、安装扩展包 yum groupinstall -y development 二、安装rvm #su -curl -L get.rvm.io | bash -s stablesource /etc/profile.d/rvm.shrvm reloadrvm -v 三、安装rubyrvm install 2.1.1...原创 2014-06-09 16:17:37 · 214 阅读 · 0 评论 -
rails 4 自定义脚手架配置
一.建立rails 4 项目rails -v # => 4.1.7rails new customgenerator --skip-bundle# edit the gem source in Gemfilecd customgeneratorbundle installrails s# visit http://127.0.0.1:3000/ 二.添...原创 2014-11-04 10:47:28 · 129 阅读 · 0 评论 -
cap production deploy时候public/uploads文件夹内容无法共享解决办法
http://stackoverflow.com/questions/9043662/carrierwave-files-with-capistrano # cap 3.2# in config/deploy.rbset :linked_dirs, fetch(:linked_dirs) + %w{public/system public/uploads}cap prod...原创 2014-10-31 16:21:33 · 169 阅读 · 0 评论 -
mac mini配置ruby开发环境
一.安装xcodeAppStore 二.安装homebrew# http://brew.shruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 三.安装rvmcurl -L https://get.rvm.io | bash -s sta...原创 2014-09-30 17:42:18 · 145 阅读 · 0 评论 -
使用vagrant创建统一的开发环境
一.安装vagrant和virtual box并下载ubuntu 12.04 32 bit镜像# virtual boxhttps://www.virtualbox.org/wiki/Downloads# vagranthttp://downloads.vagrantup.com/# ubuntu 12.04 32 bithttp://files.vagrantup...原创 2014-09-28 00:47:35 · 204 阅读 · 0 评论 -
ruby工具箱
https://rubygems.orghttps://www.ruby-toolbox.com/ https://www.ruby-toolbox.com/categories/by_name https://www.ruby-forum.com/ 古老!!! http://guides.rubyonrails.org/http://rubyonrails.org...原创 2014-09-22 12:23:39 · 495 阅读 · 0 评论 -
ubuntu下apache+passenger+php+mysql
一.安装apache2+php+mysqlsudo apt-get install mysql-server mysql-clientsudo apt-get install libmysql-ruby libmysqlclient15-devsudo apt-get install apache2#/var/www#/etc/apache2/apache2.conf...原创 2014-08-16 21:15:29 · 159 阅读 · 0 评论 -
NoMethodError: undefined method `size' for nil:NilClass
sudo apt-get install imagemagick原创 2014-07-30 10:24:42 · 1405 阅读 · 0 评论 -
rails oauth2
http://blog.yorkxin.org/posts/2013/10/10/oauth2-tutorial-grape-api-doorkeeper原创 2014-07-27 00:09:29 · 155 阅读 · 0 评论 -
rails无限级分类实现
一.左右值算法https://github.com/collectiveidea/awesome_nested_set 二.自实现https://ruby-china.org/topics/20322原创 2014-07-04 23:21:41 · 191 阅读 · 0 评论 -
upload file with carrierwave in rails
1.gem carrierwavehttp://railscasts.com/episodes/253-carrierwave-file-uploadshttps://github.com/carrierwaveuploader/carrierwave/wiki原创 2014-07-04 21:16:19 · 78 阅读 · 0 评论 -
ruby,rails,nodejs,mysql,php5,sublime,atom,nginx+passenger安装配置在ubuntu12.04
一.安装rvmsudo apt-get install curlcurl -L https://get.rvm.io | bash -s stablesource ~/.rvm/scripts/rvmrvm -v 二.安装ruby2.1.2(目前最新,也建议最新)rvm install 2.1.2rvm use --default 2.1.2ruby -vg...原创 2014-06-28 20:09:29 · 108 阅读 · 0 评论 -
rails devise Completed 401 Unauthorized && can't verify csrf token authenticity
最近做项目的时候,由于时间紧,做得太快,没注意细节,导致一些错误.11.05更新: 偶尔又会出现问题,清理历史记录后就好了!!! 1.can't verify csrf token authenticitygoogle了很久之后通过class ApplicationController < ActionController::Base # Prevent CSRF ...原创 2014-11-05 11:34:23 · 666 阅读 · 0 评论