Do you know what pagination links are? They are at the bottom of web pages and allow you to scroll to a next page, and scroll back when you’re at some deep-linked page. In Rails development, you use something called Will Paginate. It has a default set of pagination links, and sometimes these just won’t do. It’s time to subclass WillPaginate::LinkRenderer.
Continue reading
Category Archives: ruby
Nanoc + Haml + Vlad = heaven
Sorry for the acronym soup, but part of my job is research and development of new website building techniques. I have found a neat and fast way of maintaining websites in the nanoc + haml + vlad combo.
Continue reading
Using gmail with Ruby POP3
Try Googling for the title of this post! A lot has been said about using Ruby to connect to your gmailbox. In short: with Ruby 1.8 you can’t. With Ruby 1.9 it’s broken. This post led me to the right path.
Massive refactoring
or “why I love unit tests”. An ode to agile software development.
Full-time entrepeneur
A post like this one is the stuff of dreams. A guy starts coding a project because he believes in it. It starts to become a success, but his employer is bought by Microsoft. Microsoft offers the guy a huge salary to retain him as an employee. Guy declines. Guy follows his heart and builds a kick ass mofo of an app. Which app? GitHub. Whammo!
Try is brilliant
Every day the power of the Ruby programming language amazes me. It makes programming so much simpler. Example.
Connecting to a SOAP service in Ruby
When connecting to services and APIs, I tend to follow the rule that simpler is always better. SOAP is one of these services where you don’t need any more complexity than strictly required. This post eventually led me on the right path.
Segfaults in rcov
For all the apparent ‘l33tness’ the rcov tool is in a pretty sad state. Unusable, even. I get bus errors all the time and I know from experience I am not the only one. Why was this a good tool to use?
Ruby magic
Ahhh, nothing like a little Ruby sugar to start the weekend. I did little refactoring of a particular ugly bit of code and couldn’t help to share. This one is all about chopping up arrays.
Vulnerabilities in Ruby
Oops! There are some nasty vulnerabilities in Ruby. I guess Zed was right after all. It seems there’s more wrong than even he has led on though. Unfortunately when doing the upgrade by Rails segfaults, so I am between a rock and a hard place. (From RoR)