![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ruby on Rails
文章平均质量分 62
li_yong_kuan
网站维护,软件开发
展开
-
bundler解决安装gem列表所需的插件问题
1安装bundler#sudo gem install bundler2查看下版本#bundler -v3进入Rails根目录#cd /rails_app4创建Gemfile文件#bundler init(例子说明gem install bundlerbundle initecho "gem 'rails'" >> Gemfilebundle ins原创 2014-07-30 11:58:53 · 2994 阅读 · 0 评论 -
centos6.5源码安装rubyonrails及其gem插件
centos6.5源码安装ruby on rails原创 2014-07-31 16:38:07 · 3635 阅读 · 0 评论 -
Centos6.5安装rmagick遇到checking for magick-config .. no问题
Centos6.5安装rmageick1安装rmageick#gem install rmageick遇到了异常:ERROR: Error installing rmagick-2.13.1.gem: ERROR: Failed to build gem native extension./usr/bin/ruby extconf.rbchecking原创 2014-08-18 14:10:55 · 2779 阅读 · 0 评论 -
ActionController::InvalidAuthenticityToken解决途径
ActionController::InvalidAuthenticityToken解决途径方法(1):在相应的action,controller中添加下面代码如在hr_controller.rb文件中class HrController protect_from_forgery :except => 这个:index #处理除了index文件验证原创 2014-08-13 21:16:42 · 1037 阅读 · 0 评论 -
rails连接postgresql错误:psql: 致命错误: 用户 "postgres" Ident 认证失败
psql: 致命错误: 用户 "postgres" Ident 认证失败1安装好postgresql数据库后需要初始化及一些配置rails项目才能连接postgresql安装好postgresql数据后(yum命令直接安装的)第一步:初始化数据库#service postgresql initdb(说明:初始化后默认postgresql数据库有一个默认的用户postg原创 2014-09-16 01:09:49 · 4398 阅读 · 0 评论 -
发送邮件时,报postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by
Linux6.5发送邮件时,异常postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by报错信息: sendmail: warning: inet_protocols: IPv6 support is disabled: Address famil原创 2015-05-11 23:17:09 · 7795 阅读 · 0 评论 -
PostgreSQL安装hstore
PostgreSQL安装hstore搭建rubygems.org 这个项目,执行迁移 # rake db:migrate RAILS_ENV=development 时候遇到一个错误错误信息:-- enable_extension("hstore")rake aborted!StandardError: An error has occurred, t原创 2015-07-15 23:03:43 · 3616 阅读 · 0 评论 -
ruby on rails 常用的日期取值
ruby on rails 常用的日期取值获取当前时间Time.nowUTC时间,国际标准时间 Time.now.utc日相关今日开始时间00:00:00 Time.now.beginning_of_day=> 2016-07-24 00:00:00 +0800今日结束23:59:59 Time.now.at_end_of_day=> 2016-07-24 23:59:59 +08原创 2016-07-24 15:21:50 · 5515 阅读 · 0 评论