Install and configure the ror environment on linux-Linux Enterprise Application-Linux server application information. For more information, see. First download ruby
Cd/home/local
Wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.gz
Download the source code package to the local Linux host, decompress it, enter the directory, configure, compile, and install it:
Tar xzvf ruby-1.8.6-p111.tar.gz
Cd ruby-1.8.6-p111
./Configure? Prefix =/home/se
)Me. self_introduce
# Redefinition of the Class student# This method allows Def Study (subject)Puts "I am studying # {subject }"EndEnd
Me. Study ("Ruby ")Me. Extend (mymath) # Let this object learn all the methods in the Puts me. SQRT (93.1, 25) # This object uses the square root method!
The student class is redefined in this file, and a study method is added to this class so that all its objects will be study! This is quite similar to the object in n
Install memo on Ubuntu Server 10.04 + RoR
First download the Ubuntu Server 10.04 CD image, less than 700 mb. Then install. Only LAMP Server is selected for service installation.
The first thing after installation is to configure sshd-server. Sshd-Server is not installed on Ubuntu server by default, so you need to install it manually.
$ Sudo apt-get install openssh-server: Change the IP address to a fixed IP address.
$ Sudo vi/etc/network/interfaces...
A few days ago, I took a rest and went to the Book Purchasing Center to visit the bookstore. I found that there were more ror books. The translation, edited by Chinese people, or original books started to look a little dazzled, many of them are similar. Go to a book 《Ruby on Rails best practices for agile development"(Li Gang, Guo qiuxia compiled) in the example of an online examination system, it is really a coincidence that I have also made an onlin
Wish you a happy fifth day!
You have found the best environment for developing and deploying Rails Applications www.heroku.com.Provides an online ror development and deployment environment (Program magazine 04-high ). Even excited, suchIf you want to invite me, leave an email address.
Www.heroku.com
Ruby on Rails Platform-Build and deploy any rails app-No setup or configuration-Full Ruby and rails Runtime Environment-Edit code right in your brows
Original article: http://www.javaeye.com/topic/39355
Today, we found that the implementation of this forum basically uses the restful style. After reading the code, I feel that it is helpful for learning rest,
URL:
Http://beast.caboo.se/
Source code:
Http://svn.techno-weenie.net/projects/beast/trunk/
Installation instructions:Http://beast.caboo.se/forums/1/topics/381
Description of the rest service that calls beast. caboo. SE:
Http://weblog.techno-weenie.net/2006/12/13/taking-ares-out-
1 Download window version of RailsinstalllerDownload Link: ' http://www.railsinstaller.org/en2. Installing RailsinstallerWhen installed, it will automatically eject the operator station, enter your GitHub account and email to get sshkey, and add Sshkey to GitHub to submit the project you created on the window to GitHub.3. View the ruby, rails versionYou can view the current versions of Ruby and rails in the console> ruby -v> rails -vRubyMine can be installed laterInstall
System Requirements
Apache
Ruby
Rails
We recommend that you use Ruby 1.8.6 one-click installer instead of Ruby 1.8.6 binary, because the latter does not contain the fcgi module, even if you useGem install fcgiInstallation must be compiled before use. If the FCG module is not available, the following error may be reported when Apache starts the FastCGI process:
The pipe has been ended.: mod_fcgid: Get overlap result Error
Install rails:Gem install rails
Install Apache HTT
The debug is inconvenient for programmer when developer it, there was some little tips for us to improve this situation:-If you want to debug the bug in the "model", you can use "Rails console" to debug the model;-If you are want to debug "Controller" or "View", you can try one helper method named "Debug", the "the" and "the" to use it is:And the most common-to-debug is using the ' Logger ', it'll be saved in the ' Log/development.log ' of You ProjectThanks,BluesAbout Debug to
On weekends, Tianji spent all its time on two things: Sleeping + ror.
It may be because the book
Agile, both in theory, is a practice today!Review the agile declaration:Human and interaction over processes and toolsSoftware that can work is more important than documents that require full blame! ----- Our company seems to have taken a completely different path!Cooperation with customers over contract negotiationRespond to changes at any time over co
Self-built http://commando.javaeye.com/blog/297918
Set up the ROR development environment as follows.
1. Install netbeans6.5
Netbeans6.5 download address http://zh-cn.netbeans.org/download/6.5/ml/
You can download a single Ruby version, which is about 50 MB.
2. Establish a ruby Environment
Address http://rubyforge.org/projects/rubyinstaller/ for installing RUBY: one-click installation package
Install rails: Gem install rails -- remote or gem inst
We have installed Ruby and Rails before, and can install more required packages through gem.
Next, we need to install the database again.
By default, RoR uses Sqlite as the data storage engine. Although Sqlite is sufficient in small applications, it is compatible with MySQL and easy to migrate. However, considering that most of the actual product environments still use a comprehensive database system such as MySQL and Oracle, it is better to install a
Learn how the new Rails UJS Library works and compares with the old version of JQUERY_UJS that it replacesrails/actionview/app/assets/javascripts/.Video : Https://gorails.com/episodes/rails-ujs-primer?autoplay=1IntroducedThis unobtrusive scripting support file script supports rails, but is not tightly bound to any backend and can also be used in any other application.
Force confirmation dialogs for various actions;
Make non-get requests f
In continuous updateTo view the appropriate libraries, search https://rubygems.org/ second_level_cache
Cache
ActiveRecord Object Cache configuration Deviseomniauth
User authentication
User acknowledges Auto-space
Automatically add spaces to Chinese and English sass-rails
Rails ' SASS Support Library, Sass is a kind of CSS extension
Sass Puma
Server uglifier for rails programs
Compress the Uglifyjs source file. coffee-rails
Rails Official Cor
together with a configuration file. By contrast, the newer Java Web frameworks, such as seam and spring, use minimal configuration and code to publish business objects.
The Java framework has also been moving toward standardizing and integrating stacks across multiple tiers of Web applications. In the early days, Java Web application developers manually wrote code, obtained HTML output from server applets, created their own model-view-controller (MC
│└──test_helper.rb├──tmp│└──cache│└──assets└──vendor└──assets├──javascripts└── stylesheets directories, the files
The initialized project contains 44 directories and 57 files, explained in detail in the reference document launch
After one of the above commands our HelloWorld project has been created and is now launched
➜ Blog Rails s
= booting Puma
= Rails 5.0.0 application starting in development on HTTP://LOCALHOST:30 xx +
Run ' rails server-h ' For more startup options
Puma starting in sing
A Guide to testing Rails applications
Because from the test to turn around, so learning a new language or new framework, I have to start with how to conduct testing, TDD test
The default rails comes with the test folder, which contains the files required for testing, and when you create a model or controller with rake, the test files are automatically created to illustrate the focus of the rails framework for testing. All right, let's talk a lot of crap, check the test folder
Ls-f test
controll
current environment# Load the specified fixtures using fixtures = x, yRake DB: migrate# Migrate the database through the script in the DB/migrate directory. You can specify the version number through version = xRake DB: Schema: Dump# Create a DB/Schema. RB file and use AR to support any database.Rake DB: Schema: Load# Re-enter a schema. RB file into the databaseRake DB: Sessions: Clear# Clearing the sessio
the following command in the pop-up command line to update RUBY: Gem update -- System
6. Run this command to update rails: Gem update.
Now the environment is complete.
Next we will install the project management software redmine:
1. Download redmine and decompress it.
2. Copy the redmine compressed folder to the rails_apps directory in the installrails directory.
3. Start installrails.
4. Select configure-> database (via phpMyAdmin) in the menu (I icon) on the left to open phpMyAdmin,
5. Create
extension. /users/wuxj/.rvm/rubies/ruby-2.1.2/bin/ruby-r./siteconf20140830-1163-1hd6znq.rb extconf.rb Building Nokogiri using Packaged libraries.-----Libiconv is missing. Please visit http://nokogiri.org/tutorials/installing_nokogiri.html to help with installing dependencies.-----* * * EXTCONF.RB failed ***could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the Mkmf.log file for more details. You
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.