One, problems and ideas
Recently in the rails + react + MySQL basic framework to write a CMS + client project, which involves the image upload and display, the following simple ideas, as for the deployment of the project, should be in the end of
Configure the Ruby environment before installing cocoapods, this article summarizes how to install the ruby environment. Installing the ruby environment requires first installing Xcode and then installing homebrew, and then installing RVM to install
In fact, Ruby Write API program is very simple, if the API itself is relatively standard, rather than a mess.class apidemo # Defining Interfaces API_QERUY = [ :userAdd # User profile Add ] # implement Ghost Method
Recently learning Ruby,ruby is an object-oriented programming language, and rails is the framework of Ruby, just like ssh in Java. It's just that rails is an MVC pattern. The following is a procedure for installing an environment.The main reference
Link: http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/ Have you ever tried to run the yum install Ruby command on centos 5.5? If you use the default application library configuration, you will find that you have installed Ruby 1.8
Use in rubyFormat (or "% ")To format the string.
Example
"Number is %d" % 12 # Number is 12format("Number is %d" , 12) # Number is 12"Number is %d, type is %s" % [12, "cat"] # Number is 12, type is catformat("Number is %d, type is
To have the zh-CN.yml file, this can be downloaded on GitHub, someone else made
Gem for i18n Installation
Config. i18n. default_locale = "ZH-CN"
Add
Zh-CN:
Activerecord:
Attributes:
Product:
Title: "title"
Description: "Description"
The example explains the Hook method in Ruby and adds a hook to the method call. The example explains ruby.
The Hook method is similar to the event-driven device. You can execute a specific callback function after a specific event occurs. This
For details about return, break, and next in Ruby, rubyreturn
The use of the return, break, and next keywords involves the issue of jumping out of the scope. Their difference lies in the different scopes of different keywords jumping out, because
Explain in detail the condition judgment statements in Ruby and explain the ruby judgment statements
Ruby provides conditional structures, which are common in modern programming languages. Here, we will explain all the Ruby conditional statements
Ruby vs Python advantages and disadvantages, ruby vs python
Ruby and Python are too similar, and most of the trade-offs are personal preferences. For example, I think Python's "There is only one way to do it. "than Ruby's" There are always ways to
Introduction to Ruby operators and statement priority, ruby operator priority
Ruby is a language with strong expressive power. It is proud of its rich operators and syntactic sugar. Although Ruby has always regarded the principle of least surprise
Redmine, redminephp
I don't know why my colleagues are obsessed with Redmine. Instead, I gave an old machine to help me install it. I recorded some pitfalls that may help my friends.
Install Ruby
For windows, you can directly install it through
Introduction to Google Map/Reduce framework Skynet in Ruby, rubyskynet
Skynet is a very loud name, because it is the super computer network that rules humans in the movie Terminator, a classic movie starring Arnold Schwarzenegger. However, Skynet in
Configuration instance for accessing the SQL Server database in Ruby, rubysql
To analyze the data stored on SQL Server, you have to study how to use Ruby to access SQL Server. In fact, it is quite simple:
Install FreeTDS
Download FreeTDS source code
Ruby captures web images and ruby captures images.
Some time ago, I saw a lot of scripts written by my sister, and I wrote one myself.
Module CommonHelper require 'nokogiri 'require 'open-uri 'def down_load_xmz site_url = "http://www.xxx.com" for
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.