随笔分类 -  Ruby

摘要:1.带Ajax效果的rails api (rails api doc with ajax)http://www.railsbrain.com/2.ruby apihttp://www.rubybrain.com/ 阅读全文
posted @ 2008-12-03 19:29 Sink 阅读(284) 评论(0) 推荐(0)
摘要:rails 命令用法实用:rake -T 列出所有rake命令rake -T plugin 列出所有有关plugin的rake命令rake db:migrate version=0 清除数据库数据和结构1.1 创建一个Rails应用程序 $ rails app_name 可选项: -d, database=xxx 指定安装一个数据库(mysql oracle postgresql sqlite2 ... 阅读全文
posted @ 2008-12-03 14:14 Sink 阅读(844) 评论(0) 推荐(0)
摘要:I’ve noticed a lot of people asking about this one (probable because Bluehost is so cheap :) Its pretty similar to many others, but there are a few tricks. SSH Access, and installing the gem Because B... 阅读全文
posted @ 2008-11-04 09:29 Sink 阅读(385) 评论(0) 推荐(0)
摘要:Using Ruby On Rails on Bluehost: This is intended to be a brief introduction to developing ruby on rails applications on a bluehost account. At the bottom of this article you will find a number of re... 阅读全文
posted @ 2008-11-03 12:43 Sink 阅读(291) 评论(0) 推荐(0)
摘要:1.错误: InvalidAuthenticityToken error: 解决方案:http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html 2. 在community_engine开发过程中,若想自定义或修改里面的代码,但又不想每次重启server查看更新的结... 阅读全文
posted @ 2008-08-30 19:26 Sink 阅读(247) 评论(0) 推荐(0)
摘要:google search了一下 "bluehost rails" 就有很多文章(英文居多)。 大家请参考! 但有几个特别要注意的地方。 1. 添加子域名 进入cPanel后在Domains下的subdomains,点击进入,然后添加即可。 (一般人在生成rails时忘了添加子域名,也会忘了生成子域名的link.) 2.dispatch.fcgi和dispatch.rb(在publi... 阅读全文
posted @ 2008-08-27 15:25 Sink 阅读(642) 评论(0) 推荐(0)
摘要:在controller和view直接跳转 - Ctrl + Shift + A 在controller/model和test/spec之间跳转 - Ctrl + Shift + T 直接跳转到类和方法的源代码 - Ctrl + B 自动补齐 - Ctrl + " 方法参数提示 - Ctrl + P 快速修复提示 - Alt + Enter 上下文帮助 - Ctrl + Shift + Enter ... 阅读全文
posted @ 2008-07-31 10:52 Sink 阅读(793) 评论(1) 推荐(0)
摘要:1.Win32ole 2.Rails插件收集 3.如何写一个简单的Rails Plugin 4. Rails 制作自己的出错信息 5.在加强irb的自动完成功能(words completion) irb -r irb/completion 6、文档帮助 1) fastri 你还在用ri来查文档吗?那你一定会抱怨ri实在太慢了,没关系,开命令窗口: gem inst... 阅读全文
posted @ 2008-05-05 14:10 Sink 阅读(364) 评论(0) 推荐(0)
摘要:运行环境: ruby 1.8.6 rails 1.2.5 gem 1.0.1 这里用的是gmail的服务器,由于rails中的actionMailer不支持TLS(SSL)连接,但这却是Gmail SMTP服务器唯一的传输方式。网上已经有专门这个问题提供的plugin,下面总结一下配置的具体步骤: 1.安装插件: 打开cmd,进入rails项目的目录 输入 ruby script/plugin... 阅读全文
posted @ 2008-03-18 12:38 Sink 阅读(2143) 评论(0) 推荐(1)