-
Archives
- November 2019
- February 2018
- April 2017
- October 2015
- July 2015
- May 2015
- January 2015
- August 2014
- November 2013
- September 2013
- August 2013
- July 2013
- June 2013
- March 2013
- February 2013
- November 2012
- October 2012
- August 2012
- July 2012
- November 2011
- September 2011
- August 2011
- May 2011
- January 2011
- October 2010
- May 2010
- April 2010
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
-
Meta
Author Archives: Rob Nichols
mongrel_service on Windows 7 64bit
My current applications run on Linux in production, but I still develop on Windows PCs. My main works PC runs Windows 7 Pro 64bit. This isn’t too much of a problem. Just a couple of things don’t work (like wicked_pdf), … Continue reading
Posted in Ruby
Comments Off on mongrel_service on Windows 7 64bit
Time format
I found an interesting article by Todd Sayre on time formats in Rails. It is only short, but interesting. Based on that I created config/initializers/time_formats.rb in my latest app: # Used to create time and datetime formatting short cuts. Search … Continue reading
Posted in Ruby
Comments Off on Time format
Logging activity within a Rails application
I wanted to add a tool to log users’ activity in my current application. I wanted something simple, and decided that the solution was to combine two techniques: One: making session data available at the model and observer level. An … Continue reading
Posted in Ruby
Comments Off on Logging activity within a Rails application
attachment_fu – working with database file storage
Once I had attachment_fu working with files stored within the Rails application file system, I hit a problem as I wanted to be able to share files across three applications. The problem being that if the file was uploaded in … Continue reading
Posted in Ruby
Comments Off on attachment_fu – working with database file storage
Unit testing attachment_fu
I’m working on a portion of my latest application that will need a facility to upload files. As these files are not images, I decided to use the plug-in attachment_fu. The thing that has caused me the most head scratching … Continue reading
Posted in Ruby
Comments Off on Unit testing attachment_fu
ActiveRecord MS SQL adapter error fixed
It looks like the SQL Server adapter error I mentioned previously has been fixed. The fix was posted yesterday (21-Apr-10).
Posted in Ruby
Comments Off on ActiveRecord MS SQL adapter error fixed
Test driven development is essential
After almost a year of using test driven development, I am now a total convert. I now feel it is so vital to good development practice that, across the board, I think I can label my previous applications as bad … Continue reading
Posted in Ruby
Comments Off on Test driven development is essential
Self referencing objects
My application has products, and each product can have components which are themselves products. I achieve this via a pair of self-referencing has_and_belongs_to_many relationships. has_and_belongs_to_many :components, :class_name => ‘Product’, :join_table => "product_grouping", :association_foreign_key … Continue reading
Posted in Ruby
Comments Off on Self referencing objects
Test driven development
I’m starting to get into test driven development. Test driven development has been advocated in the Rails community for some time (its core to the “Agile” coding methodology) but to be honest I’ve not bothered with it much. I am … Continue reading
Posted in Ruby
Comments Off on Test driven development
Bug in the activerecord-sqlserver-adapter-2.2.21 gem
Error causes INFORMATION_SCHEMA.COLUMNS to be appended to database name when using connection.select. Continue reading
Posted in Ruby
Comments Off on Bug in the activerecord-sqlserver-adapter-2.2.21 gem