Install ruby on rails development environment in win7, win7rails
PrefaceMany articles have said that the ruby environment is very difficult to build on windows, and various strange problems may occur. Therefore, we recommend installation and development on linux and mac. However, I followed the tutorial, and there were not too many problems. It took about two and
The three components of devise, cancan, and rolify combine to create a complete and powerful user rights model.
Devise introduction, responsible for user registration, login, exit, retrieve password and other operations. Detail reference devise on GitHub
Cancan, which is responsible for role creation, authorization of roles, displaying elements in the page based on authorization, and throwing exceptions when the model is out of authorization. Detail reference rolify on GitHub
Ro
presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureIf you divide it further, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display page
Indicates that the logical layer generat
The presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureAssuming a further cut, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display page
Indicates that the logical layer g
Construction of development environment under Windows system
1. Remote Installation
Step 1: Download and install the Ruby one-click installation package
Download the latest Ruby 1.8.4-16 one-click installation package with a download address of :
http://rubyforge.org/projects/rubyinstaller/
Run the installation file after downloading, and click the Next button to install it by default. When
1. Prepare the library used for installation
$ Sudo apt-Get install GCC g ++ build-essential libssl-dev libreadline5-dev zlib1g-dev Linux-headers-generic
2. Download ruby1.9.2 source code compilation and Installation
$ Wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
(If you cannot download, you can choose: http://ftp.ruby-lang.org/pub/rub
1.RubyInstaller Download window version installation at Rubyinstaller website, address: http://rubyinstaller.org/downloads/Execute setup, tick add Ruby executables to your PATH, install finish test on cmd ruby-v viewNote that there are no spaces in the installation path, otherwise it will affect rails installation TIPS: If the input
Ruby on Rails in various pits on the window platform, the configuration process is quite painful.Expected installation content:MySQL serverRuby 2.0.0Rails 4.0.2MYSQL2 0.3.16installation files:MySQL official website: http://dev.mysql.com/downloads/windows/installer/Select the 64-bit installation file to download the installationrailsinstaller:http://www.railsinstaller.org/enThe official version is 1.9.3
Reference data:ForRuby on RailsIf you are not clear about it, you can refer to the following link information.Ruby on RailsInformation.
Ruby: A pure Oo Script Language ..Ruby on Rails: Quick Building Web Of MVC Architecture Framework Description : Integrated Environment : Instant rails Yes Wind
For newly-introduced developers, how to install Ruby, the operating environment of Ruby Gems and Rails can be a problem, this page focuses on how to quickly install a ruby development environment with a reliable path.The secondary installation method is also applicable to the product environment!System RequirementsFirs
According to "Ruby on Rails" and I learned the route map, we know that can be accessed GET /posts/ :id (. :format ) to display specific objects.1. Modify the actionModify the APP/CONTROLLERS/POSTS_CONTROLLER.RB show this action. Here's a puzzle, what if I get the parameters inside the URL?can be accessed via the params built-in variable! As follows: def show
In the rubyforge projectEmacs-railsPackage: Ruby support for Emacs under the MISC directory in the ruby release.NxhtmL The use of Emacs addon provides strong support for ror project development.
Briefly describe the installation and configuration process:
1.Download the latest emacs-rails package from the rubyforge website.
2.Download the lisp package on which em
10 essential and useful Ruby on Rails 4 Gems
The Ruby on Rails framework is a powerful tool used to develop Web applications. It is equipped with a large number of built-in functions to help accelerate the development of your Web applications, such as smart routing and Object-link mappers, all adopt the MVC mode.
In the past few years, the open source Web development Framework Ruby on Rails has created a small upsurge in the web world. Like many things in the software world, its role is somewhat exaggerated.
Nothing is as magical as what people advertise it. But rails is at least as close to this altitude as it is, so it's worth studying for.
Not long ago, people were a
This article is not an article about NodeJS and Ruby on Rails. It only describes the reasons behind the thinking and decision-making in our decision-making process. The two frameworks are both excellent and both of them are well designed. This is why some of our modules are still running on NodeJS.
I am a big fan of NodeJs. I think this is a very exciting technology and I believe it will become more and mor
Statement: This article is not an article about nodejs and Ruby on Rails. It only describes the reasons behind the thinking and decision-making in our decision-making process. The two frameworks are both excellent and both of them are well designed. This is why some of our modules are still running on nodejs.
I am a big fan of nodejs. I think this is a very exciting technology and I believe it will become m
Ruby on Rails is a complete framework for developing database-driven network applications. Recently, the latest version of Ruby on Rails 3.0 RC has been officially released and is available for download. The blog of the Ruby on Rails
Label: Queried the experience of the great God Http://stackoverflow.com/questions/19078044/disable-activerecord-for-rails-4 Http://stackoverflow.com/questions/821251/how-to-configure-ruby-on-rails-with-no-database The one I liked the most was the way I used it. If you is creating a new application, you can use-O to skip activerecord:rails new My_app-O for existin
Https://ruby-china.org/wiki/install_ruby_guideHow to quickly and correctly install Ruby and rails runtime Environments
For new entry-level developers, installing Ruby, Ruby gems, and rails running environments may be a problem. Th
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.