Using Github’s "Atom" IDE for developing Ruby on Rails applications

Atom.io was released in early 2014 by Github. It was his contribution to the woefully underdeveloped SublimeText offering, which while a great product, suffered from being only premium and was rarely updated. The Atom editor’s open source Github approach was a remake of the work already done by Sublime.

The Atom.io editor is based on the “Electron” framework, a system designed to make HTML / css-based applications work on native operating systems. Quite simply, this means that the system can operate a fully natively capable executable application file, hosting a NodeJS application on the backend. This not only gives a large amount of capacity to the system, but also allows you to install any application created with it on a variety of devices.

To develop Ruby on Rails applications with Atom.io, you need several things configured. First of all, you need to make sure you have a working Ruby installation. Once it’s in place, you also need to make sure you can install the Rails gem on top of it. If you can do this, you can start developing RoR applications, which is where Atom.io comes in.

To develop a RoR application, you need to initialize “rails” in a directory of your choice. To do this, open the CMD / Bash command prompt and type “rails new [[app name]]”. This will initialize all the necessary files within the directory. From here, you will be able to run the Rails” server “(” rails s “) which will allow you to send and receive requests to the application from the browser.

From this point, you can use Atom to edit any of the files necessary for your application to work. Since Ruby on Rails works on an “MVC” (Model View Controller) programming pattern, you will need to create a route, controller action, and view for any “URLs” you want to display to the user. To edit the routes, you can edit config / routes.rb and then add a corresponding controller action in app / controllers / your_controller.rb.

The main thing to consider with Atom is how you can add additional packages to help with development. To do this, your best bet would be to browse the GitHub Atom website and see any of the potential packages you want to download, allowing you to update your system experience.

Leave a Reply

Your email address will not be published. Required fields are marked *