Creation of new Rails project - Project name: first_app
#creates a rails app with all required folders
rails new first_app
#enter the directory of our app
cd first_app
Edit the Gemfile specifying the exact versions of the gems required
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :development do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.2'
#Install the gems specified
bundle install
#start the server
rails server
Open the webpage http://localhost:3000
0 comments:
Post a Comment