Recently, rake was used for database migration. Ruby's activerecord only supports single-primary-key tables, which is very troublesome for the migration of compound-key tables.Assume that table A1 has a Sid primary key, and its storage is as follows:
Metaprogramming is a ruby feature that can dynamically modify the language structure, such as the class structure, module structure, and instance variable information.
You can evenProgramAdd and run the newCodeYou do not need to restart your
Ruby 192 + watir 3.0.0
Today, I encountered a strange problem: Use watir: IE. attach in the script to locate a new ie window, and always report an error. error message:
Watir-classic-3.0.0/lib/watir-classic/ie-class.rb: 760: In 'rescue in
Http://tryruby.hobix.com/provides a command line that, in addition to the built-in Ruby method, provides the following interesting and useful five commands:
The help wizard takes about 15 minutes to help you learn the most basic things of Ruby.
System Environment: Windows 7 SP1
Ruby version: 1.9.2-P0
Devkit version: 4.5?
When you install eventmachine in this environment, errors are always reported.
Building native extensions. This cocould take a while...Error: Error installing
When I selected a language in the project in the early stage, I hesitated for a long time in ror and Django, and finally saw an evaluation.ArticleI also mentioned that Django is twice as efficient as Ror, so I chose Django.
After a period of
Document directory
About Style
About Dynamics
Structure
Others
Usage
/*************************************** *
Call by name
Everything is an object and never closes
Hook everywhere
Yield/block/proc/Lambda, first-class citizen
Symbol and
I just learned Ruby. It happened that the algorithm teacher encouraged me to write algorithms in unfamiliar languages. I will use ruby ~~
Ruby is really amazing, and many intuitive methods can be used ..... Infinite worship ....
While I encountered
After studying flex for a while, we found that actionscript3 is as dynamic as Ruby and can build very powerful clients. However, for some text-based systems, it is a bit cool-killing, however, in the future, the client is moving towards multi-media,
Development Environment:
OS: Windows XP
RUBY: ruby1.9.1
Rails: rails2.3.5
Will_paginate: will_paginate2.3.11
(Run the gem install mislav-will_paginate -- source http://gems.github.com in the command line)
IDE: rubymine2.0.1
DB: mysql5.0.9
This
Ruport Official Website: http://www.rubyreports.org/
This example introduces the simple development of Ruby reports.
Development Environment
OS: Windows XP
RUBY: ruby1.8.7
Rails: rails2.3.5
MySQL: mysql5.0.9
IDE: rubymine2.0.1
1. Install
This example is based on the ruby ruport practice-Report parameter implementation to implement addition, deletion, and modification of table parameters when the report is executed and defined.
1. Modify views/report_executions/edit.html.
Abstract: programming requires more knowledge, experience, judgment, and so on, which will not degrade due to age growth. In other words, programming can be done for a lifetime. This is slightly different from those of professional sports players.
Ruby is an open-source and is freely available on the web, but it is subject to a license .. (Open Source protocol ...)
Ruby is a general-purpose, interpreted programming language. (multi-purpose, interpreted)
Ruby is a true object-oriented
Finally, I started to translate some Japanese sentences that I could not understand. I would like to ask the Japanese mm next to me.
MM read it for the first time, did not understand it, and did not understand it for the second time. Japanese ....
Ruby Syntax:
1: Variable2: Comment3: embedded document4: Reserved Words
Ruby currently uses the ASCII character set. It can recognize uppercase and lowercase letters. In addition to the variable and part of the direct amount, you canAdd spaces and
Because I am used to Java, the general syntax will be compared with Java
Variable name: must be a single entity (do not contain spaces), must begin with a letter and underline, case sensitive. Not much different from Java
Numbers and expressions
Attr_reader: abc
You can use
Instance name. abc obtains the value of this variable, but cannot be modified. It is equivalent
Def abcReturn @ abcEnd
By the way, attr_writer and attr_accessor,Attr_writer: abc, which is equivalent
Def abc = (abc)@
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