Published News Ruby

Using Struct and OpenStruct

Posted By tutorialStash on Ruby

Sometimes you just want an object that can store some data for you, the struct class is very useful in that situation.
Getting Started

To create our Struct we pass in a series of symbols, which will become the instance variables of this class. They will have accessors defined by default (both for reading and writing).

Large Hadron Migrator - Online MySQL schema migrations

Posted By tutorialStash on Ruby - lhm - Online MySQL schema migrations
Rails style database migrations are a useful way to evolve your data schema in an agile manner. Most Rails projects start like this, and at first, making changes is fast and easy.

Build an API in your Rails app now!

Posted By tutorialStash on Ruby - Over the past months we have been building various APIs here in Kollegorna using Rails. Although there has been a lot of fuzz about API frameworks in Ruby community like the sinatra-way and Grape the truth is that I never felt that Rails limits you when building APIs, especially if you have a large one.