Using Paperclip to save the width and height of the attachemnt
When using Paperclip to save an attached image, how do I get & store the dimensions of the image? Best…
Achieving Developer Excellence with Automated Testing
Posts related to Ruby, Rails, other programming topics. Highly technical.
When using Paperclip to save an attached image, how do I get & store the dimensions of the image? Best…
CSS Positioning cheet-sheet. You actually need quite a bit of understanding of CSS to find this useful. I recommend David Sawyer…
OK, so I feel it is officially time to kill IE 6 and below. IE 6 has been the bane…
Some experimentation with the text-overflow property. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”><html> <body><div style=”border: 1px solid red; max-width: 400px; overflow:hidden; text-overflow:…
A little CSS pattern to demonstrate what to do when you want one column to stay at a fixed width…
I discovered an interesting difference between two patch levels of the same Ruby (1.8.7) def index respond_to do |format| format.html…
This method was adapted from this blog post. So, you are creating a thing (record) or maybe you are updating…
Quick demonstration of public, private, and protected methods.
Reads a file line by line into an array my_stuff my_stuff = [] file = File.new(“config/random_categories.txt”, “r”) while (line =…
Note that when setting the Rails environment you have to pass it differently in different cases. For rake, set RAILS_ENV=…