Ruby on Rails

Details Snippets Git Rails hosting PuTTy

Core

Definition

Ruby on Rails (Rails or RoR): open-source, server-side, web application deveopment framework , written in Ruby (gem: rails).

There is almost always some new part of the Rails API (Application programming interface) or a third-party RubyGem for doing exactly what you are trying to do.

Elements

MVC (Model View Controller): Rails follows the model-view-controller architectural pattern (/1/: Figure 2.11).

Clarifications

Start

On the server has to be: (a) already installed and accessible Ruby (consult hosting provider) and (b) enabled the use of the BASH command line.

Install Ruby on Rails with:
$ gem install rails

Start the application_name website application development with:
$ rails new application_name
creates in actual server folder the default Rails directory structure:

 File/DirectoryPurpose
 app/Core application: models, views, controllers, helpers
 app/assetsApplications assets: CSS, JavaScript files, images
 config/Application configuration
 db/Database files
 log/Application log files
 public/Data accessible to the web browsers
 test/Application tests
 GemfileGem requirements for this app

Modes of Operation

Topics

Ruby on Rails Topics Links (to the tutorialspoint)

Ruby on Rails Basics 2.1

Ruby on Rails Basics

Installation Framework Directory Structure Examples Database Setup Active Records Migrations Controllers Routes Views Layouts Scaffolding AJAX File Uploading Send Emails

Ruby on Rails Resources

References Guide Quick Guide Resources Discussion

Ruby on Rails Topics Overview

Core (environments, gems, bundler, toolbox, DRTW (Don’t Reinvent The Wheel), DRY(Don’t Repeat Yourself)), Start (startup scripts, initializers, preloader, configuration, routing), REST (REST (REpresentational State Transfer), resources, routes), Controllers (rack, action dispatch, render), Active Record (methods, atributes, CRUD (Create, Read, Update, Delete), database, associations, migrations, querying, advanced), Validation (finding errors, declarations), Action View (layouts, templates, partials), Helpers, Haml, Application (session management, authentification, authorization, security), Operations (mailing, caching, background processing, Ajax), Asset Pipeline (asset management, style), Tools (turbolinks, action cable, RSpec), Active Model, ActiveSupport.

Sources

Useful links

Learn

Start: M. Hartl’s e-book Ruby on Rails tutorial
(a) tutorialstutorialspoint railsgirls railscasts.com
(c) ebooksStanford
(b) exercises/examcodecademy (account) quizlet

Practice

Help: $ rails help
(a) documents: Home RailsGuides API-Documentation GemsGuides GitHub 
(b) tools: gems toolbox AWS-Cloud9 aptana SublimeText railscasts.com devdocs
(c) best practicerails-bestpractice

Selected Books (ebooks collected)

author, title, edition, pages, publisher, ISBN, Amazon: price, evaluation / reviews, record date

  1. Hartl M.: Ruby on Rails Tutorial: Learn Web Development with Rails, 4th. 804. Addison-Wesley, 2016. 0134598628. $37.99. 4.6 / 85. 2020 02 11. ( Hartl M.: Ruby on Rails Tutorial: Learn Web Development with Rails, 6th. 915. Learn Enough, 2020. −. $39.00. − / −. 2020 02 11. )
  2. Ruby S., Copeland D. B., Thomas D.: Agile Web Development with Rails 5.1, 1st. 496. Pragmatic Bookshelf, 2017. 1680502514. $39,49. 4.3 / 13. 2020 02 11.
  3. Wintermeyer S.: Learn Rails 5.2: Accelerated Web Development with Ruby on Rails, 1st. 436. Apress, 2018. 148423488X. $32.99. 3.9 / 6. 2020 02 11.
  4. Kehoe D.: Learn Ruby on Rails 5: Book One, 4.0.0. 169. RailsApps, 2014. B00QK2T1SY (Kindle). $1.24. 4.0 / 96. 2020 02 12.
  5. Bigg R., Katz Y., Klabnik S., Skinner R.: Rails 4 in Action: Revised Edition of Rails 3 in Action, 2nd. 576. Manning Publications 2015. 1617291099. $44.99. 5.0 / 3. 2020 02 12.
  6. Valim J.: Crafting Rails 4 Applications: Expert Practices for Everyday Rails Development, 2nd. 208. Pragmatic Bookshelf, 2013. 1937785556. $36.61. 4.0 / 7. 2020 02 12.
  7. Fowler C.: Rails Recipes: Rails 3 Edition, 2nd. 296. Pragmatic Bookshelf, 2012. 1934356778. $15,75. 4.3 / 12. 2020 02 12.
  8. Fernandez O.: The Rails 5 Way, 4th. 1084. Addison-Wesley Professional, 2017. 0134657675. $42.96. 5.0 / 7. 2020 02 12.
  9. Elder J.: Learn Ruby On Rails For Web Development: Learn Rails The Fast And Easy Way!, 1st. 214. Codemy.com, 2015. 0692364218. $41,66. 4.0 / 23. 2020 02 12.
  10. Copeland D. B.: Rails, Angular, Postgres, and Bootstrap: Powerful, Effective, Efficient, Full-Stack Web Development, 2nd. 344. Pragmatic Bookshelf, 2017. 1680502204. $27,49. 4.0 / 10. 2020 02 12.
  11. Ediger b.: Advanced Rails: Building Industrial-Strength Web Apps in Record Time, 1st. 360 pages. O’Reilly Media, 2008. 0596510322. $34.40. 3.8 / 11. 2019 20 03.
  12. Zygmuntowicz E., Tate B., Begin C.: Deploying Rails Applications: A Step-by-Step Guide,1st. 280. Pragmatic Bookshelf, 2008. 0978739205. $39.95. 3.7 / 7. 2020 02 12.
  13. Schmidt M.: Enterprise Recipes with Ruby and Rails. 425. Pragmatic Bookshelf, 2008. 1934356239. $43.79. 4.3 / 3. 2020 02 12.
  14. Pytel C., Saleh T.: Rails AntiPatterns: Best Practice Ruby on Rails Refactoring, 1st. 400. Addison-Wesley Professional, 2010. 0321604814. $44.99. 4.5 / 19. 2020 02 12.
  15. Benson E.: The Art of Rails, 1st. 309. Wrox, 2008. 0470189487. $−. 4.0 / 7. 2020 02 12.
  16. Goodrich G., Lenz P.: Rails: Novice to Ninja: Build Your Own Ruby on Rails Website, 3rd. 542. SitePoint, 2016. 0994347006. $38.15. 2.7 / 8. 2020 02 12.
  17. Gamble A., Carneiro C., Barazi R.: Beginning Rails 4, 3rd. 328. Apress, 2013. 1430260343 . $49.99. 3.9 / 8. 2020 02 12.
  18. Bradburne A.: Rails 5 Revealed, 1st. 82. Apress, 2016. 148421708X. $19.99. 5.0 / 1. 2020 02 12.
  19. Isenberg R.: Docker for Rails Developers: Build, Ship, and Run Your Applications Everywhere, 1st. 240. Pragmatic Bookshelf, 2019. 1680502735. $29.49. 4.5 / 10. 2020 02 12.
  20. Rappin N.: Rails 5 Test Prescriptions: Build a Healthy Codebase, 1st. 406. Pragmatic Bookshelf, 2018. 1680502506. $40.52. 4.5 / 4. 2020 02 12.

Details Snippets Git Rails hosting PuTTy