码迷,mamicode.com
首页 >  
搜索关键字:capistrano ruby rubygem gem    ( 5761个结果
Key/Value之王Memcached初探:二、Memcached在.Net中的基本操作
一、Memcached ClientLib For .Net 首先,不得不说,许多语言都实现了连接Memcached的客户端,其中以Perl、PHP为主。 仅仅memcached网站上列出的语言就有:Perl、PHP、Python、Ruby、C#、C/C++以及Lua等。 那么,我们作为.Net.....
分类:Web程序   时间:2014-07-22 00:39:36    阅读次数:387
【Ruby】Ruby大法第二天——帮助生成Vim添加代码头的代码。
脚本语言真是太强了。我的目的是把我的默认代码头功能加到Vim里面。 1 /****************************************************************************** 2 * COPYRIGHT NOTICE 3 * ...
分类:其他好文   时间:2014-07-21 11:06:00    阅读次数:214
Rails 和 postgresql 配置
这里我的系统是Ubuntu14.04 LTS 安装RVM 和 Ruby 运行:?curl -sSL https://get.rvm.io | bash -s stable --ruby 如果没有 curl 就安装下, 命令: sudo apt-get install curl 安装Rails 运行: sudo gem install ra...
分类:数据库   时间:2014-07-21 10:31:47    阅读次数:296
Mongoid Without Rails
questionI'm playing with a standalone ruby application and can't configure Mongoid 3.0.13 to work.I've run across a couple example apps that have conf...
分类:其他好文   时间:2014-07-19 15:29:05    阅读次数:260
ruby中的self
self,自己,在ruby中表示当前对象或默认对象。程序执行的任一时刻,有且仅有一个self。1.谁成为self,在什么位置成为self?要知道哪个对象是self,就必须知道当前的上下文。上下文主要有顶层上下文,类定义上下文,模块定义上下文,方法定义上下文。可以根据下图总结的内容进行self的判断。...
分类:其他好文   时间:2014-07-19 15:20:58    阅读次数:219
How to Install Xcode, Homebrew, Git, RVM, Ruby & Rails on Snow Leopard, Lion, Mountain Lion, and Mavericks
After following many outdated and incomplete instructions for setting up a web development environment on a Mac (back in March 2012), and spending a l...
分类:其他好文   时间:2014-07-19 15:00:41    阅读次数:730
OS X升级到10.10之后使用pod出现问题的解决方法
最新对mac 10.10的强大功能好奇,于是将系统升级到了10.10,结果发现使用pod出现了下面的问题:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such fil...
分类:其他好文   时间:2014-07-19 12:04:58    阅读次数:195
REST Client – simple DSL for accessing HTTP and REST resources
https://github.com/rest-client/rest-clienthttps://github.com/jnunemaker/httpartyhttp://ruby-doc.org/stdlib-2.1.2/libdoc/net/http/rdoc/Net/HTTP.htmlhtt...
分类:数据库   时间:2014-07-19 09:30:02    阅读次数:398
ruby on rails错误undefined method `title' for nil:NilClass
首先搞清楚这句话,在 Ruby 中,方法分为 public、private 和 protected 三种,只有 public 方法才能作为控制器的动作。 我的出错的代码如下: controlle class ArticlesController < ApplicationController def new end def create params.permit...
分类:其他好文   时间:2014-07-18 18:14:43    阅读次数:295
ruby on rails出现的问题ActiveModel::ForbiddenAttributesError
首先分清楚我们在搞rails时,看资料和所使用的环境的版本是否相同。看的资料是rails3.2,电脑配置的环境是4.0,就会出现这种安全防范措施的问题。这类问题大多出现在new或者create两个action中。我的就是出现在create中。 下面实例展示: 下面的是我出错的代码。 def create @article = Article.new(params[:article]) ...
分类:其他好文   时间:2014-07-18 15:07:56    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!