I recently did not find any tutorials for getting started on Ruby on Rails. The others are all download of e-books, and the existing notes are just the most basic.
Or some configuration tutorials.
I read some information in practical rails social networking sites Ruby on RALs and thought it was good. I 'd like to write
1.1.rails
1.1 create a rails Application
Program
$ Rails app_name
Optional:
-D, database = xxx specifies to install a database (MySQL Oracle PostgreSQL sqlite2 sqlite3), which is a database by default
-R, ruby-Path = specifies the ruby installation path. If not, scripts u
There is a chance to try rails again, only the original contact is 2, now has become 4, it seems that the installation is now faster than the original.
Rails 4 Installation
Aimed at installing the RVM
Copy Code code as follows:
Gem Install Rails
If not, it should be:
Copy Code code as follows:
sudo gem install
I. Railway
1.1 create a rails Application
Program
$ Rails app_name
Optional:
-D, database = xxx specifies to install a database (MySQL Oracle PostgreSQL sqlite2 sqlite3), which is a database by default
-R, ruby-Path = specifies the ruby installation path. If no path is specified, SCR javaspts uses env to find
Ruby on Rails on mac====================================================================================http:// Morizyun.github.io/blog/marvericks-rails-setup-ruby-rvm-msyql/for general:useful:http://qiita.com/keneo/items/ 0a58b188183b5100e3affor mysql:http://qiita.com/hkusu/items/cda3e8461e7a46ecf25dhttp://dev.classme
After playing Ruby, you can now play with rails:C:/instantrails/Ruby/bin> rails C:/instantrails/rails_apps/mybookIn the C:/instantrails/rails_apps/object, the application of the primary mybook and the related cases will be created.
RowsRuby C:/instantrails/rails_apps/mybook/script/ServerOr to instant rails> I>
Prerequisites:
I cover all these operations on centos 6.4 and with root, So if you encounter some privilege problem, try sudo.
And, if using Ubuntu, you needn't worry about SELinux.1. Install essentical Library
Yum update
Yum install GCC g ++ make automake Autoconf curl-devel OpenSSL-devel zlib-develhttpd-devel Apr-util-devel SQLite-devel gcc-C ++
# Then compile and install nodejs
Wget http://nodejs.org/dist/v0.10.7/node-v0.10.7.tar.gz
#........
2. Install libyaml (needed by
Ruby on Rails on mac====================================================================================http:// Morizyun.github.io/blog/marvericks-rails-setup-ruby-rvm-msyql/for general:useful:http://qiita.com/keneo/items/ 0a58b188183b5100e3affor mysql:http://qiita.com/hkusu/items/cda3e8461e7a46ecf25dhttp://dev.classme
Before you start
About this tutorial
Ruby on Rails (rails) is a full-stack WEB application framework written in Ruby, and Ruby is a rich, free, extensible, portable, object-oriented scripting language. Rails is very popular amon
Ruby on Rails dynamic rendering Remote Code Execution Vulnerability (CVE-2016-0752)0x00 Overview
If your application uses a dynamic rendering path (dynamic render paths), such as rendering params [: id], using local file inclusion Sion ), remote code execution may occur. You can update Rails to the latest version or refactor your controllers to fix the vulnerabi
Ruby on Rails Remote Code Execution Vulnerability Analysis in CVE-2016-0752)
If your application uses a dynamic rendering path (such as render params [: id]), unfortunately, this application currently has a remote code execution vulnerability caused by local file inclusion, please quickly update your Rails to the latest version or refactor your controller.In this
: 3000/greeting/index and finds that Ruby prompts you where the index is located. Greeting indicates the Controller index. The default action is index. You can enter http: // localhost: 3000/greeting/without writing it.Use controller to display your wordsDefine the action in greeting_controller.rb of APP "ControllersDef IndexRender: text => "EndRefresh the browser and you will have your words.3. Bind the Co
Configure Ruby on Rails and Git and railsgit on Mac
Ruby on Rails on Mac ======================================== ========================================================== ========= http://morizyun.github.io/blog/marvericks-rails-setup-
Original: Http://stackoverflow.com/questions/4113299/ruby-on-rails-server-optionsApache vs NginxThey are all Web servers that can servo static files. Apache is more popular, has more features, and nginx is relatively less functional, small, and fast. Both Apache and Nginx are able to servo the Ruby server outside the box (Out-of-the-box), and you need to use addi
:~ $ Passenger-install-apache2-moduleWelcome to the Phusion Passenger Apache 2 module installer, v3.0.18.This installer will guide you through the entire installation process. ItShouldn't take more than 3 minutes in total.Here's what you can expect CT from the installation process:1. The Apache 2 module will be installed for you.2. You'll learn how to configure Apache.3. You'll learn how to deploy a Ruby o
Source: http://podlipensky.com/2012/06/choosing-web-framework-asp-net-mvc-vs-django-python-vs-ruby-on-rails/How often does emerge from the cubicle to look around, note new faces or new facial expression on old ones? How often does emerge from you technology stacks to consider better another approaches/practices?If you do this rarely–bad for you, you'll miss important changes in your environment, loose the t
creating a new project, and this time see the result, then go into the Hello project to open the Gemfile file, in the first line there is a: source ' https://rubygems.org/' Change to our domestic mirror source:[Plain]View Plaincopyprint?
SOURCE ' http://ruby.taobao.org/'
There is no problem installing bundles at this time:[Plain]View Plaincopyprint?
Gem Install bundle
You need to create a new controller: Say Specific action: Hello[Plain]View Plaincopyprint?
Tutorial on efficient unit tests on Ruby on Rails, rubyrails
In the system developed by the author, a large amount of data needs to be analyzed, which not only requires accurate data analysis, but also requires a certain speed. Before writing the test code, I used several major methods to achieve this requirement. As you can imagine, the code is complex, difficult to maintain, and difficult to expand. Takin
Build a ruby on rails development environment under CentOS7, centos7rails
1. Install rvm
Curl-L https://get.rvm.io | bash-s stable
Rvm is a command line tool that provides management and switching of Multi-version ruby environments. You can also manage different gemsets based on projects.
If the ssh key is not generated, this step may fail. directly generate
When you first start learning about rails, you might be confused about how to automatically handle naming in rails, such as how to find a table named people in the database based on a model named person, and this time we'll look at the naming conventions in rails.
1. Mixed case, underline, plural
We often use abbreviated named variables, in
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.