Rails Appplication Programming
13 June 2011 | 0 Comments
I sometimes run free Rails courses locally here. One of the things that I have learnt is that it seems to be best to teach Rails ‘backwards’. What do I mean by that? Well it depends on how you define ‘forwards’! If you practice TDD then a high level process would be to: Write your [...]
Tagged in course, idea, learning, rails, study, teaching, technique
Rails Appplication Programming
20 May 2011 | 0 Comments
I recently migrated a basic PHP website to Rails 3. The job went smoothly and this is my first Rails 3 app so I thought I would write about my experiences. Getting Started In this situation I would start directly at database level. Get the database ready so that you can create simple ActiveRecord classes [...]
Tagged in migration, php, rails, tips
Rails Appplication Programming,Ruby Server Programming
21 April 2011 | 0 Comments
Actually, the title of this post is mis-leading a little so blame Google for bringing you here if this is not what you wanted! What I will do is tell you this – Bundler is really slow on my machine! It takes more than 40 minutes to install just a single gem! I have heard [...]
Tagged in bundler, gems, installation, rails, rails3, rubygems, ruiby
Bash Scriping,Rails Appplication Programming
15 April 2011 | 0 Comments
Today, while installing Rails 3, my computer suffered a power outage. This does not happen very often, in fact, this was actually due to the computer overheating! After pouring cold water over the keyboard, I restarted the computer and continuing the Rails 3 installation the process, but to my shock and horror, it failed with [...]
Tagged in bash, gem, install, rails
Rails Appplication Programming
10 February 2011 | 0 Comments
I needed to set an attribute on a join table or in ActiveRecord, the :through model as an atomic save action. Let’s set the scene: I have a Product and a User which has a many-to-many relationship since a Product can have many Users and a User can have many Products. Typically, in a database [...]
Tagged in associations, has_many, rails, ruby, through