Archive for the ‘Uncategorized’ Category

A voting extension from scratch for Rails 3 (Part 5 – Migration Generators)

In the last episode we took a look at the model and schema of the MakeVoteable gem. However the schema in the spec folder just sets up our required database fields for the testing environment, but does not help us when the gem gets installed in a Rails application. Therefore are the migration files defined [...]

A voting extension from scratch for Rails 3 (Part 4 – models and migrations)

Better late than never … finally Part 4 of the blog series about developing MakeVoteable, a voting gem for Rails 3. In the last episode we took a deeper look how to get the logic inside our gem. In this episode we focus on the model this logic acts on. As we use ActiveRecord to [...]

A voting extension from scratch for Rails 3 (Part 3 – logic concerns)

After some busy days I finally had the time for part 3 of the MakeVoteable blog series. In the previous episodes we looked at setting up the basic gem structure and configuring our testing environment. Now it’s time to investigate the core logic of make_voteable. A voting system normally has someone who votes (a voter) [...]