Ruby on Rails quick start template
Rails 5.2.1 | Ruby 2.5.3
Database.yml needs some inital info for the database:
- Rename the
- Populate the
config/application.ymlwith the ENV keys required to set up the database.
When releasing be sure to include
PRODUCTION_DATABASE_NAME in the configuration variables on your server.
Normal Rails setup from here:
rails db:create db:migrate
Google analytics ID(s) can be placed in
This template makes full use of turbolinks 5. In a
Production environment the
application.js is loaded via the
application.html.erb layout file.
application.js file there is a
initialize function that is fired once on initial page load, and again after every page change. There is a block that checks for the initial loading of the site and anything you wish to only run once per site visit can be placed within.
Site global variable
Functions are defined to
Site which is bound to the
window and can then be called from anywhere. This is most useful to be able to organize your functions into files that are easily findable and only have one purpose.
Site.exampleFunction = function()
Fire function on every page
Site.exampleFunction() into the
initialzie function within
Fire function on only certain url, or all sub urls
Site.exampleFunction() into the
page_specific.js. There are two switch functions, once will fire on a single page and the other will fire on a page and any url that includes that page.
initialize function will fire a
js:initialized event every time it is fired, you can watch for this event to fire js rather than putting the function call in the
Included Non Standard Gems
annotate to quickly add helpful annotations to models, and specs
A gem that helps keep controllers concise and easy to read.
Better enumerations for rails
Interactor provides a common interface for performing complex user interactions.
Modernizer for easy access to what web technologies are available to the browser
Greensock for awesomely powerful animations
For user authentication
For permission and authorization
This template uses Postgres everywhere by default, to keep your production and development environments as close as possible. Check out the gem page for info on how to set up Postgres if you're having trouble. Check out the Postgres.app for OSX if you want a super easy Postgres setup!
The fog_aws gem is for connecting and storing files via Amazon S3, a very affordable and powerful storage option.
A gem that adds AJAX file upload capabilities to Rails
A gem that dynamically adds and removes nested has_many associations fields
A gem that makes rails forms well... Simple. Very powerful tool that is setup to make use of foundation framework for quick and easy beautiful functional forms.
A gem that dynamically adds client side validations to Rails Forms based on your model validations.
Get browser information in your server from the agent string of the requests. This allows you to check within views and controllers for things like mobile devices and remove heavy content such as videos in such a case.
For monitoring errors within your application
For monitoring application performance
Gem for splitting up stylesheets that go beyond the IE limit of 4095 selectors, for Rails 3.1+ apps using the Asset Pipeline.
For real time in line code testing
A gem that adds environment variables to your development environment.
Change your development environment to open mailers in a browser window rather than sending
A library for setting up ruby objects for test data
A library for generating fake data, great to use with Factory Bot
A testing library that is much more readable than the default rails testing
bundle exec guard you can have your development browser auto reload on changes within your application
Live checking of rspec tests