1. ror ide
Http://deadlock.netbeans.org/hudson/job/ruby/
You can download the dedicated Ruby ide version netbeans from this location, which is only 30 mb in size and faster than radrails! Netbeans ror supports a lot of features, but pay attention to the following two points:
1) be sure to use jdk6.0; otherwise, netbeans will be slow.
2) Make sure to modify the JDK font file. Otherwise, garbled characters will be displayed in Chinese (refer to the dcaoyuan post on the javaeye Forum)
View me:
Netbeans Ruby ide has many great shortcut keys, such:
Quickly open the ruby class (including the system class library)-Ctrl + O
Quickly open the current project file-Alt + Shift + O
Jump directly to the Controller and view-Ctrl + Shift +
Jump between Controller/model and test/spec-Ctrl + Shift + T
Jump directly to the source code of the class and method-Ctrl + B
Automatically complete-Ctrl +/
Method parameter prompt-Ctrl + P
Quick Fix prompt-Alt + enter
Context help-Ctrl + Shift + enter
Rename and rebuild-Ctrl + R
There are many more, you can refer to here:
Http://wiki.netbeans.org/wiki/view/RubyShortcuts
After using netbeans, the development efficiency is very high.
Then there is the console.
Ii. Command Line window
Windows XP's command line window is too difficult to use. Is there a better solution? Yes! I use cygwin.
Common Unix shell tools are available, and even Vim is installed, which is really convenient!
You can see the unique tail-F log/development. log of UNIX, which can dynamically observe the output of development logs. This is very useful. Windows platform also has many tail implementation tools, but without exception, the output cannot be normally displayed in UNIX format. Only the tail of cygwin and radrails is normal.
The only unpleasant thing is that the command under cygwin should contain a suffix, such as rake. bat stats and mongrel_rails.cmd start. But it is easy to solve. I modify it. bash_profile adds $ home/bin to the beginning of $ path, and then creates symbolic connections under my $ home/bin!
Iii. rails plugin
Let's take a look:
1) rspec and rspec_on_rails replace test. Why should we use rspec because spec is more demand-oriented and complies with the BDD programming idea (behavior-driven programming ), in addition, rspec itself is more powerful than rails's test function.
2) ferret, acts_as_ferret, and multilingual_ferret_tools are used for full-text retrieval. You don't need to talk about them. As for how to better organize full-text retrieval, I haven't had time to design it. Come on.
3) attachment_fu is used to save the attachment and uses the AR polymorphism Association.
4) cache_fu is used for object caching and query caching.
5) bbcodeizer: This is the bbocde parser of Ruby version. Of course, the function is not complete and you have to modify it yourself.
6) as the name suggests, acts_as_taggable is used to save and operate User-Defined tags.
7) will_paginate is an excellent alternative to rails's built-in paginate
Iv. Document help
1) fastri: Are you still using Ri to query documents? Then you will surely complain that Ri is too slow. It doesn't matter. Open the command window:
Gem install fastri
Follow the quick Ri gem package, and then
Fastri-server-B
Create an index and then use qri to query documents. Is the speed n times faster?
2) view this website in a dictionary of rails documents:
Http://www.railsbrain.com/api/rails-1.2.3/doc/index.html
How is it? For convenience, download the offline version of rails help. I must open two tabs in Firefox. One is the help, and the other is the test webpage.
V. Debugger
Although Ruby is a dynamic language, the debugger function is not inferior to Java. Open the command window:
Gem install ruby-debug-ide-y
Then open your netbeans, open the debugger, and start the rails project in debug mode. Haha, as powerful as Eclipse, you can track stacks, watch variables, and perform one-step operations at breakpoints:
Vi. Test Coverage Rate
Do you want to know the test coverage rate of the project? Open the command window:
Gem install rcov
Configure rake tasks and run the task to obtain the test coverage rate of the entire project?
Add
1) modify the/nbrubyide/etc/nbrubyide. conf file
Change # jdkhome = "/path/to/JDK" to your JDK path.
Note:
1. If you are using a Windows Chinese version and do not like the English font on the netbeans interface, you can change it:
Netbeans_default_options = "-J-Xms32m-J-Xmx128m-J-XX: permsize = 32 m-J-XX: maxpermsize = 160 m-J-Dnetbeans.logger.console = true-J-Ea-J-Dapple.laf.useScreenMenuBar = true-J-Duser.language = en-J-Duser.country = us -- fontsize 11"
2. The default font is monospace. You can select font & color from tools> options and change it to the default font. Generally, lucida sans typewriter works best.