Some websites collected by Ruby on Rails during this time. I personally feel good. If you are interested, please check them out.
Infoq
Codebetter
Napcsweb
Riding
Rails
Rubyonrails
Taoxi
Why am I a senior. net
Program Employee, after a month of Ruby on Rails learning, he will think: only after I understand Ruby on Rails, in order to complete many previously developed applications with less time and coding?
You are a senior. Net
Labels: Install with file OS code I/OInstall RubyYum install Ruby IRB rdoc Install haskallYum install ghc Install Io LanguageTo install the I/O language, install cmake first, but do not use yum for installation. The version of Yum installation is
1. How to solve the problem that garbled characters are displayed in the scite editor in Chinese. use NotePad to open the RB script, save it as, select the encoding mode as UTF-8, and save it. Open the script with scite.
How can I make the scite
Ruby, as an emerging language, has developed rapidly over the past few years with the help of the rails killer application. This articleArticleThis is my summary of Ruby over the past month. Of course, the main tone is for reference.
Peter
Both require and require_relative are kernel methods.
However, there is a difference between the two.
Requrie filename
1) if filename is a relative path, it will be searched in $ laod_path ($ :).
$ Load_path.unshift (file. dirname (_ file _)
Ruby is an object-oriented programming language, which means the programming structure it operates on is called "object"
First go to the Code to understand the definition and usage of the class.
Class computer $ manufacturer = "Mango computer, Inc."
The ruby language has existed for a long time and has never been popular in China. Many people only know such a language and there are few people. No matter what language has been developing for more than a decade, it must have something unusual. It
####################### Class variables ############### ####### class cloud @ COUNT = 0 def initialize (user, password, ip) @ user = user @ Password = password @ IP = IP end def createvm @ IP = IP @ count + = 1 endend ############## ###########
Both alias and alias_method in Ruby can be renamed. The differences between them are as follows:
1. Alias is a keyword of Ruby, so it is alias: newname: oldname.
Alias_method is a method of the module class. Therefore, alias_method: newname,
I have no intention of initiating a language dispute. I just want to talk about my own ideas.
I have also studied Ruby. I feel that it is too complicated, with too many syntaxes, too much sugar, and too many abbreviations.
I haven't played Ruby for
Finally, the full-text search of ferret was completed. It was not easy to get three full-text searches.
The last two times on my mac, ferret has been confused. The main problem is that it cannot be used for Chinese word segmentation, and it is
Method
A) Definition:
Def method name (parameter) # method parameters in ruby can be left blank
# Do something
End
Note: naming rules for method names: Start With lowercase letters or underscores (_), followed by numbers, letters, and underscores (_)
I,
Ruby Introduction:Ruby is "an interpreted scripting language for quick and easy object-oriented programming ". 1. interpreted scripting language
Ability to make operating system CILS directly
Powerful string operations and regular
The use of the Ruby language can help us implement many functions. For example, this article will introduce you to the implementation methods for creating XML in Ruby, which is one of them.
Ruby module Win32API calls win32API directly
How to call
Is there such a problem in the application of computer languages? Python usage is much higher than ruby usage. If you want to know why the proportion of people who select the former is large, read the following article! I hope you will gain some
The real world is full of objects. We can classify them. for example, when a very small child sees a dog, no matter what type it is, they will be called "bow-wow". We are born to have the ability to understand the world by type.In terms of OO
When a method ends, we may need to clean it up. maybe an open file needs to be closed, and the data in the buffer zone should be cleared. if there is always only one exit point for each method, we can safely put our cleaning code in one place and
An asynchronous file download HttpServer instance implemented by ruby,
1. Use ruby eventmachine and em-http-server gem to complete a simple HttpServer that provides the file download function.
2. The FileStreamer of EM is used to send files
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