Rails

From: Wikipedia

Ruby on Rails, or simply Rails, is a web application framework written in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages.


Setup

Full App

rails new <app_name> -d postgresql -T

# -d sets the type of database. sqlite by default
# -T prevents default test install

API App

rails new <app_name) --api

database

rake db:create
rake db:migrate
rake -T

Install rspec

Update Gemfile

group :development, :test do
  gem 'rspec-rails'
end

Generate

rails generate rspec:install

Notable Gems

results matching ""

    No results matching ""