Sometimes you just want an object that can store some data for you, the struct class is very useful in that situation.
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).
A common concern heard from new Volt users is “How do I build an API with it?”. You’ll be glad to know that Volt can be used to create REST APIs very easily.
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.
Ruby Object Model : The Current Object, 'self' in Ruby
RabbitMQ publisher failures, bunny publisher failure control, make bunny asynchronous using jobs, resque for bunny gem
Learn how to use Vim for efficient and effective Rails development. The article covers plugins and configuration that will make Vim a fantastic Rails IDE.
Ruby and recursion - find out all possible chess knights movements using minimax algorithm
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.