Learn about ruby on rails development environment, we have the largest and most updated ruby on rails development environment information on alibabacloud.com
For several days, ROR environment finally set up, in order to prevent later forget, less detours, special records
=============================================
installation process
1. Installation rubyinstaller-1.9.2
2, install the implementation gem install Rails
3. Install dev Kit Download and unzip to Ruby's installation directory
4. Install NetBeans 6.9.1
5, open the NetBeans configuration Ruby g
Issue:Gem files would remain installed in/tmp/bundler20140825-31835-p0c0p/sqlite3-1.3.9/gems/sqlite3-1.3.9 for inspection.Results logged To/tmp/bundler20140825-31835-p0c0p/sqlite3-1.3.9/extensions/x86-linux/1.9.1/sqlite3-1.3.9/gem_ Make.outAn error occurred while installing Sqlite3 (1.3.9), and bundler cannot continue.Make sure that ' gem install sqlite3-v ' 1.3.9 ' succeeds before bundling.Solution:You need the SQLite3 development headers for the gem
: Network Disk DownloadThis is the first book on the Ruby on Rails.The main contents of the book are divided into two parts. In the Build Application section, readers will see an example of a complete online book purchase site. During the presentation, the author truly reproduces a complete iterative development process, giving the reader a firsthand experience of the various problems encountered in real-wo
Agile Web Development with Rails Translator (17)
Chapter Nineth Task D: Settlement!
So far, we have built a basic product management system, we implement a catalog and have a nice shopping cart. Now we need to get the buyer to actually buy something in the shopping cart. Before proceeding, let us implement the settlement function first.
We are not going to go too far. All we have to do now is get the us
and tricks of Ruby programming. The inherent Syntax of Ruby directly creates the miracle of Ruby on Rails. There are countless Ruby magic in the Ruby on Rails framework, which is amazi
interpretive type and uses dynamic typing, you can implement techniques that are difficult to implement in Java at run time. One of the surprising capabilities achieved by dynamically typed and expressive syntax is that it can create domain-specific languages (DSLs) with Ruby-they allow you to work at higher levels of abstraction, away from the most original language syntax. Ruby on
1, the first is the installation of RVM,$ gpg--keyserver hkp://keys.gnupg.net--recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3$ Curl-ssl Https://get.rvm.io | Bash-s Stable$ Source ~/.RVM/SCRIPTS/RVMecho "Ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/dbThere should be no problem, test RVM, command line input: rvm-v If the version number is returned correctly, OK.Use environment check: RVM requirements, here encountered the issue of t
no longer a dream. Instant rails has a very good idea. The birth of a very practical tool is simply the gospel for our ror developers to quickly build a development environment. Currently, only Windows versions are available, and Linux and Mac versions are being transplanted.
Instant rails is automatically installed once and runs Apache web server,
When building a rails Development Environment on Ubuntu, there are always some problems, so I will contribute to the establishment of the environment from start to end. We enabled rails to develop a 400 telephone platform.
1. Install the nodejs Library
Sudo apt-Get install nodejs
2. Install GCC, MySQL, and some libraries and update the system to the latest versi
Agile Web Development with Rails Translator (18)
The only interesting thing here is the code associated with the selection list. We have already assumed that the list of valid payment options is a property of the order model-it will be an array of an array in the model file. The first element of each sub-array is made into a string that is displayed as an option for the selection, and the second value is s
The most troubling thing about rails development is environmental issues. With its own ideas and the help of a great defense project, the configuration of each environment takes a long time to solve, and there are many inconveniences in collaborating with others. So I've been trying to do a development environment that can be reused at any time.
1. Install Docke
Recently, organization leaders deployed a task to develop the user self-service system. This task was completed independently by only one of me-Haha, a wonderful job.
It happened that the landlord was recently confused by the wonderful features of Ruby, so he put it into the arms of Ruby on Rails without hesitation.
However, in the process of system
I recently learned how to develop agile Web applications-applying rails for agile web development, version 2nd. When I implemented depot in chapter 1
Create the "goods maintenance" application,
Class admincontroller Scaffold: Product
End
Then
Depot> Ruby script/Server
An error occurs when I enter localhost: 3000/admin in the browser:
Undefined method 'scaf
objects in sessions. When necessary, the session can store numbers or strings, and then retrieve data from the database based on the session content when processing a single request. (The new session mechanism in rails 2.0 solves this problem)
Avoid handling response requests with a large amount of information ). When you encounter a request to process a large amount of information, you can mark the change record as pending, and then use a Cron tran
The Rails Actionview::helpers::texthepler module provides a number of practical methods that are useful for forum class applications, such as Auto_link, which automatically detects URLs in incoming strings. and automatically converts it to HTML hyperlink format, which is good for displaying the content of a post.
But in the development of JavaEye3.0, but found that auto_link have bugs, once the post URL fo
Common commands
Rails new New_app
cd New_app
rake db:create
Rails server
rails generate controller Blog action1 action2
Rails Generate model Comment commenter:string body:text post:references
Rake db:migrate
rake db:rollback
Rails t
Agile Web Development with Rails translations (18)
Here, the only interesting thing is the code associated with the select list. We have assumed that the list of valid payment options is an attribute of order model-it will be an array of an array in the model file. The first element of each sub array is a string that is displayed as an option selected, and the second value is stored in the database. [If we
gemdir , and of course, you can also RVM gemset list , there will be arrows pointing to the gemset being used . Now you can install various Gem the following: Gem Install Rails
5.
After the rails installation is complete, create the project: Rails New MytestprojAfter the creation is complete, I will use thin and MySQL, so: CD MytestprojVI GemfileComm
operating systems.
Ruby is now very popular and people are starting to use it to build applications. Because it is interpreted and uses dynamic types, you can do a lot of extremely flexible work at run time, which is very difficult in Java. One of the magical features supported by dynamic typing and expression syntax is the ability to create domain-specific languages in Ruby, which enables developers to w
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.