kclunie.github.io


Rails as an API

There are so many fun surprises that come with Rails and one particularly interesting is its ability to be an Application Programming Interface (API). Rails can act as both the frontend and backend of a website, but it can also serve as an API. Let’s review: an API helps one system communicate with another external system. APIs are data repositories that slim down logic and are easier to work with. Using Rails, we can create our own APIs and share our information on the web. When building frontend applications using JavaScript or handling asynchronous requests our Rails API can render JSON strings, making our application build a breeze. Let’s take a closer look.


Relationships by Active Record

Seeking relationship advice? Active Record is here to save the day. We want to be able to build great relationships so that our classes can get along and feel close to one another. Active Record allows us to press the easy button to associate models and their database tables. Active Record lets us write quicker and easier code.


Git it Together

What is GitHub? It sounds like a home for Gits, whatever that is…. Git is an open-source version control system that was created by Linus Torvalds. Git allows developers to edit and update things that they build. They can incorporate changes in code in a precise manner, continually.


Ruby Classes and Instances

When we want to build objects in Ruby we need 2 ingredients: classes and instances. We need to make classes and create instances of those classes. A class is like the instructions on how to build an object and an instance refers to the individual object created from the class.


Like it or Not

Like it or not, everyone likes to “like”. So how do we get that much loved button up and running?