Ruby knowledge collection

Source: Internet
Author: User

1. Win32ole

 

2. Rails plug-in Collection

 

3. How to Write a simple Rails Plugin

 

4. Create your own error message in Rails

 

5. Enhance the Automatic completion function of irb (words completion)

Irb-r irb/completion

 

6. 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

 

7. 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:

8. 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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.