井底之蛙

January 25, 2007

Some good stuff on Rails

Filed under: rails

Today I found some very useful Rails stuff.

  • InVisible Ruby On Rails Reference 1.1.2 or you can download the PDF version. For me, It’s a big help to be quick familiar with Rails framework.
  • http://rails2u.com You can find the latest offline Rails API doc in CHM format to download there. I really hope Rails official site could offer these offline domuments as Java do. I know there is ‘gem_server’, but I don’t know why there is no local documents, only WWW’s. Other interesting goods will catch your eyes as you hanging about this Japanese site.
  • DevBoi 0.5.1 I can’t recall how I found this firefox extention. It outlines currently HTML 4.01/XHTML 1.0, CSS 2.1, DOM 2, JavaScript 1.3, and Ruby on Rails 1.1.2, PHP, XUL if you install Reference Addon Packs. It gives you outlines, not details. But it really takes you to details on respective official sites when you double click each item.

December 29, 2006

几个 Rails 站点

Filed under: rails

今天看到的一些关于 Ruby on Rails。

  • new bamboo 一个位于 Brighton 的小公司,团队三个人,用 Ruby on Rails 创造了好多极漂亮的站点。

December 26, 2006

用 jEdit 打造巨爽无比的 Ruby 代码编辑环境

Filed under: jedit, ruby, rails

jEdit 加上两三个插件,写起 Ruby 来是非常爽的。步骤也很简单,下面是我的实践。

  • 在 Plugin Manager 中选择 RubyPlugin、Project Viewer、SuperAbbrevs 三个插件(这三个是需要手动选择的,其它关联的它会自动选上),安装它们,需要连接网络。
  • Utilities -> Gloable Options -> Shortcuts 中设置一下快捷键,我只设置了 RubyPlugin 的 Code Complete 快捷键为 Ctrl + Space。其它的随你喜欢。
现在你编辑 Ruby 时已经可以享受代码提示和基本的代码补全功能了,但如果你还想再爽一些,比如只用敲两个字符就能自动补全整个代码块,那么还需要多一点点设置。

好了,现在或许你需要重启一下 jEdit,然后可以试着编辑一个 rb 文件,敲入 bt,按一下 Tab 键,你会惊叫一声的,整个语句都为你自动补全了,并且现在你按下 Tab 键会在你需要修改的地方自动回转,怎么样,爽呆了吧。

所有的缩写可以在 Plugins -> Plugin Options -> SuperAbbrevs -> Abbreviations 下面找到。

  • 还想随时查阅 Ruby Docs?没问题。选择 Plugins  -> RubyPlugin -> Ruby Docs (Toggle),出现的对话框左上角有个黑色的小三角,点击它,让你选择 doc 的悬浮位置,我选停靠右边。看到文档了吧,供你随时查阅。
基本上我觉得有代码补全,高亮,缩写这几个功能就非常爽了。如果还不满足,Google 吧。






















Get free blog up and running in minutes with Blogsome
Theme designed by Minz Meyer