https://github.com/bengmend/ruby-on-rails

Ruby on Rails

https://github.com/bengmend/ruby-on-rails

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Ruby on Rails

Basic Info
  • Host: GitHub
  • Owner: bengmend
  • License: mit
  • Language: Ruby
  • Default Branch: main
  • Size: 157 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 24
  • Releases: 0
Created about 2 years ago · Last pushed 9 months ago
Metadata Files
Readme Contributing License Code of conduct Codeowners Security

README.md

Welcome to Rails

What's Rails?

Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three layers: Model, View, and Controller, each with a specific responsibility.

Model layer

The Model layer represents the domain model (such as Account, Product, Person, Post, etc.) and encapsulates the business logic specific to your application. In Rails, database-backed model classes are derived from ActiveRecord::Base. Active Record allows you to present the data from database rows as objects and embellish these data objects with business logic methods. Although most Rails models are backed by a database, models can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as provided by the Active Model module.

View layer

The View layer is composed of "templates" that are responsible for providing appropriate representations of your application's resources. Templates can come in a variety of formats, but most view templates are HTML with embedded Ruby code (ERB files). Views are typically rendered to generate a controller response or to generate the body of an email. In Rails, View generation is handled by Action View.

Controller layer

The Controller layer is responsible for handling incoming HTTP requests and providing a suitable response. Usually, this means returning HTML, but Rails controllers can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and manipulate models, and render view templates in order to generate the appropriate HTTP response. In Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and controller classes are derived from ActionController::Base. Action Dispatch and Action Controller are bundled together in Action Pack.

Frameworks and libraries

Active Record, Active Model, Action Pack, and Action View can each be used independently outside Rails.

In addition to that, Rails also comes with:

  • Action Mailer, a library to generate and send emails
  • Action Mailbox, a library to receive emails within a Rails application
  • Active Job, a framework for declaring jobs and making them run on a variety of queuing backends
  • Action Cable, a framework to integrate WebSockets with a Rails application
  • Active Storage, a library to attach cloud and local files to Rails applications
  • Action Text, a library to handle rich text content
  • Active Support, a collection of utility classes and standard library extensions that are useful for Rails, and may also be used independently outside Rails

Getting Started

  1. Install Rails at the command prompt if you haven't yet:

    bash $ gem install rails

  2. At the command prompt, create a new Rails application:

    bash $ rails new myapp

where "myapp" is the application name.

  1. Change directory to myapp and start the web server:

    bash $ cd myapp $ bin/rails server Run with --help or -h for options.

  2. Go to http://localhost:3000 and you'll see the Rails bootscreen with your Rails and Ruby versions.

  3. Follow the guidelines to start developing your application. You may find the following resources handy:

Contributing

We encourage you to contribute to Ruby on Rails! Please check out the Contributing to Ruby on Rails guide for guidelines about how to proceed. Join us!

Trying to report a possible security vulnerability in Rails? Please check out our security policy for guidelines about how to proceed.

Everyone interacting in Rails and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the Rails code of conduct.

License

Ruby on Rails is released under the MIT License.

Owner

  • Login: bengmend
  • Kind: user

GitHub Events

Total
  • Issue comment event: 3
  • Push event: 255
  • Pull request event: 1
  • Create event: 2
Last Year
  • Issue comment event: 3
  • Push event: 255
  • Pull request event: 1
  • Create event: 2

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • mend-for-github-com[bot] (11)
Pull Request Authors
  • mend-for-github-com[bot] (7)
Top Labels
Issue Labels
Mend: dependency security vulnerability (7) Mend: license policy violation (2) Mend: code security findings (1)
Pull Request Labels

Dependencies

.github/workflows/lint.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite
  • zzak/action-discord v8 composite
.github/workflows/rail_inspector.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite
.github/workflows/rails-new-docker.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite
  • zzak/action-discord v8 composite
.github/workflows/rubocop.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite
  • zzak/action-discord v8 composite
.devcontainer/Dockerfile docker
  • ghcr.io/rails/devcontainer/images/ruby ${VARIANT} build
Brewfile homebrew
  • ffmpeg *
  • imagemagick *
  • memcached *
  • mupdf *
  • mysql *
  • poppler *
  • postgresql *
  • redis *
  • vips *
  • yarn *
actioncable/package.json npm
  • @rollup/plugin-commonjs ^19.0.1 development
  • @rollup/plugin-node-resolve ^11.0.1 development
  • eslint ^4.3.0 development
  • eslint-plugin-import ^2.7.0 development
  • karma ^3.1.1 development
  • karma-chrome-launcher ^2.2.0 development
  • karma-qunit ^2.1.0 development
  • karma-sauce-launcher ^1.2.0 development
  • mock-socket ^2.0.0 development
  • qunit ^2.8.0 development
  • rollup ^2.35.1 development
  • rollup-plugin-terser ^7.0.2 development
actiontext/package.json npm
  • @rollup/plugin-commonjs ^19.0.1 development
  • @rollup/plugin-node-resolve ^11.0.1 development
  • rollup ^2.35.1 development
  • trix ^2.0.0 development
  • @rails/activestorage >= 7.1.0-alpha
activestorage/package.json npm
  • @rollup/plugin-commonjs ^19.0.1 development
  • @rollup/plugin-node-resolve ^11.0.1 development
  • eslint ^4.3.0 development
  • eslint-plugin-import ^2.23.4 development
  • rollup ^2.35.1 development
  • rollup-plugin-terser ^7.0.2 development
  • spark-md5 ^3.0.1
package.json npm
  • webpack ^4.17.1
railties/test/isolation/assets/package.json npm
  • @rails/actioncable file:../../../../actioncable
  • @rails/activestorage file:../../../../activestorage
yarn.lock npm
  • 685 dependencies
Gemfile rubygems
  • activerecord-jdbcmysql-adapter >= 1.3.0 development
  • activerecord-jdbcmysql-adapter >= 0 development
  • activerecord-jdbcpostgresql-adapter >= 0 development
  • activerecord-jdbcpostgresql-adapter >= 1.3.0 development
  • aws-sdk-s3 >= 0 development
  • azure-storage-blob ~> 2.0 development
  • backburner >= 0 development
  • brakeman >= 0 development
  • debug >= 1.1.0 development
  • delayed_job >= 0 development
  • delayed_job_active_record >= 0 development
  • google-cloud-storage ~> 1.11 development
  • image_processing ~> 1.2 development
  • mdl != 0.13.0 development
  • minitest-bisect >= 0 development
  • minitest-ci >= 0 development
  • minitest-retry >= 0 development
  • mysql2 ~> 0.5 development
  • pg ~> 1.3 development
  • puma >= 5.0.3 development
  • queue_classic >= 4.0.0 development
  • rdoc ~> 6.5 development
  • redcarpet ~> 3.2.3 development
  • redis >= 4.0.1 development
  • redis-namespace >= 0 development
  • resque >= 0 development
  • resque-scheduler >= 0 development
  • rouge >= 0 development
  • rubocop >= 1.25.1 development
  • rubocop-md >= 0 development
  • rubocop-minitest >= 0 development
  • rubocop-packaging >= 0 development
  • rubocop-performance >= 0 development
  • rubocop-rails >= 0 development
  • rubocop-rails-omakase >= 0 development
  • rubyzip ~> 2.0 development
  • sdoc >= 0 development
  • sidekiq >= 0 development
  • sneakers >= 0 development
  • stackprof >= 0 development
  • sucker_punch >= 0 development
  • syntax_tree = 6.1.1 development
  • trilogy >= 2.7.0 development
  • w3c_validators ~> 1.3.6 development
  • websocket-client-simple >= 0 development
  • activerecord-jdbcsqlite3-adapter >= 1.3.0
  • activerecord-jdbcsqlite3-adapter >= 0
  • activerecord-oracle_enhanced-adapter >= 0
  • aws-sdk-sns >= 0
  • bcrypt ~> 3.1.11
  • bootsnap >= 1.4.4
  • capybara >= 3.39
  • cgi >= 0.3.6
  • connection_pool >= 0
  • cssbundling-rails >= 0
  • dalli >= 3.0.1
  • dartsass-rails >= 0
  • error_highlight >= 0.4.0
  • httpclient >= 0
  • importmap-rails >= 1.2.3
  • jbuilder >= 0
  • jsbundling-rails >= 0
  • json >= 2.0.0, != 2.7.0
  • libxml-ruby >= 0
  • listen ~> 3.3
  • minitest >= 5.15.0, < 5.22.0
  • msgpack >= 1.7.0
  • nokogiri >= 1.8.1, != 1.11.0
  • prism >= 0
  • propshaft >= 0.1.7
  • racc >= 1.4.6
  • rack >= 0
  • rack-cache ~> 1.2
  • rake >= 13
  • rexml >= 0
  • ruby-oci8 ~> 2.2
  • selenium-webdriver >= 4.11.0
  • sprockets-rails >= 2.0.0
  • sqlite3 ~> 1.6, >= 1.6.6
  • stimulus-rails >= 0
  • tailwindcss-rails >= 0
  • terser >= 1.1.4
  • turbo-rails >= 0
  • tzinfo-data >= 0
  • useragent >= 0
  • wdm >= 0.1.0
  • web-console >= 0
  • webmock >= 0
  • webrick >= 0
Gemfile.lock rubygems
  • 220 dependencies
actioncable/actioncable.gemspec rubygems
  • nio4r ~> 2.0
  • websocket-driver >= 0.6.1
  • zeitwerk ~> 2.6
actionmailbox/actionmailbox.gemspec rubygems
  • mail >= 2.8.0
actionmailer/actionmailer.gemspec rubygems
  • mail >= 2.8.0
  • rails-dom-testing ~> 2.2
actionpack/actionpack.gemspec rubygems
  • nokogiri >= 1.8.5
  • racc >= 0
  • rack >= 2.2.4
  • rack-session >= 1.0.1
  • rack-test >= 0.6.3
  • rails-dom-testing ~> 2.2
  • rails-html-sanitizer ~> 1.6
  • useragent ~> 0.16
actiontext/actiontext.gemspec rubygems
  • globalid >= 0.6.0
  • nokogiri >= 1.8.5
actionview/actionview.gemspec rubygems
  • builder ~> 3.1
  • erubi ~> 1.11
  • rails-dom-testing ~> 2.2
  • rails-html-sanitizer ~> 1.6
activejob/activejob.gemspec rubygems
  • globalid >= 0.3.6
activemodel/activemodel.gemspec rubygems
activerecord/activerecord.gemspec rubygems
  • timeout >= 0.4.0
activestorage/activestorage.gemspec rubygems
  • marcel ~> 1.0
activesupport/activesupport.gemspec rubygems
  • base64 >= 0
  • bigdecimal >= 0
  • concurrent-ruby ~> 1.0, >= 1.0.2
  • connection_pool >= 2.2.5
  • drb >= 0
  • i18n >= 1.6, < 2
  • minitest >= 5.1, < 5.22.0
  • tzinfo ~> 2.0, >= 2.0.5
rails.gemspec rubygems
  • bundler >= 1.15.0
railties/railties.gemspec rubygems
  • irb >= 0
  • rackup >= 1.0.0
  • rake >= 12.2
  • thor ~> 1.0, >= 1.2.2
  • zeitwerk ~> 2.6
tools/rail_inspector/rail_inspector.gemspec rubygems
  • syntax_tree = 6.1.1
  • thor ~> 1.0