Using Github’s "Atom" IDE To Develop Ruby on Rails Apps

Atom.io was released in early 2014 by Github. It was their contribution to the woefully under-developed SublimeText offering, which although was a great product, suffered from being premium-only and rarely updated. Github’s approach of open-sourcing the Atom editor was a fresh take on 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. Simply, this means that the system is able to operate an executable application file with full native capacity – hosting a NodeJS application in the backend. Not only does this give a huge amount of capacity to the system, but also allows you to install any app built with it on a range of devices.

To develop Ruby on Rails applications with Atom.io, you need several things set up. Firstly, you need to make sure you have a working Ruby installation. Once this is in place, you also need to ensure you can install the Rails gem on top of it. If you’re able to do this, you’ll then be able to 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 inside the directory. From this, you’re then able to then run the Rails “server” (“rails s”) which will allow you to send and receive requests to the app from the browser.

From this point, you’ll be able to use Atom to edit any of the files required to make your application 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 “URL” you wish to show 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 the way in which it’s able to add extra packages to aid with development. To do this, you’d be best browsing the GitHub Atom website and see any of the potential packages you wish to download – allowing you to upgrade the experience of your system.

Source by Richard Peck

Wordpress Membership Plugin

Related Posts

Ruby on Rails Training and Scope

How To Install Ruby on Rails Mysql2 Gem on Windows 10

Services Offered by Net Development Services and Mobile Apps Development Companies

How Messaging Apps Are Outperforming Social Media Apps

Leave a Reply









What is 4 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)