22
Jul 13

What is Object Oriented Programming (OOP)

In this blog, I wanted to first fully understand what OOP really means, so I started researching the web and old textbooks. I am very glad I did as it really made things a lot clearer for me as well as increased my desire to learn ruby language. Below is my summary on the subject. [...]


17
Jul 13

Creating Model Relationships Ruby on Rails style

After creating an association between statuses and users table by adding user_id to statuses table to indicate that that a user can own many statuses. I then needed to update both user and status models to allow for this relationship to persist. In this blog I will explain how I achieved this using rails, as [...]


17
Jul 13

Installing rails Form Helper – Simple Form

In previous frameworks I have worked with such as cakePHP, there is usually a form helper which exists to help reduce repetitive html tags as well as making it easy to put together fields and validation rules in a single line. I found this is not an exception in rails, but the added advantage that [...]


17
Jul 13

Generating migration script and intro to Rails Console

At this point my simple rails demo app (blackbook) now has 2 tables, users and statuses tables. Initially I added name field to statuses, but now that I have created users table which has first_name and last_name I decided to remove the name field from the statuses table I also wanted to make a direct [...]