Fortune...
July 8th, 2008
I got his when I logged into one of my OpenBSD boxes today. Interestingly true…
Read the rest of this entryTip #14 - Custom Error Messages in Validations
April 23rd, 2008
If you use Rails, you sometimes get a situation where the custom error messages just don’t work, here is how you can fix it…
Read the rest of this entryTip #13 - BangBang Transformations!
April 22nd, 2008
Ruby is marvelous, everything evaluates. Which means a lot of the time, you can get away with things like ‘if @user…” and just depend on the existence of the @user var. But what if you just really need a Boolean true or false? Here is a little pattern you can use to do this…
Read the rest of this entryTip #12 - HTML and HTTP are Your Friends
April 21st, 2008
What is an <em> tag? How do you manually make a select box? What about a multi value select box? Do you know the difference between a <submit> tag and a <button> tag? Can you hand code a form to make a restful post to one of your Rails controllers? If you can’t do all the above with plain HTML and no rails helpers or don’t know the difference between a GET and POST request and when you use either, then you need to read on. If you can, feel free to skip to the next section.
Read the rest of this entryTip #11 - Transact Your Migrations!
April 19th, 2008
If you are using Rails, you are most likely using migrations. Have you ever had a migration fail half way through? Have you ever then had to figure out how to find each change and revert it in the database? Would you like to never have to do that again? Here is how…
Read the rest of this entryTip #10 - The Ruby Language
April 18th, 2008
Learning Rails is hard enough without also facing the task of learning Ruby at the same time. Here I go over some of the must knows in Ruby so that you get some basic understanding of how to do Rails.
Read the rest of this entryTip #9 - Learn Programming Theory
April 17th, 2008
Being a Rails developer means that, yes, you too need to learn how to (gasp) program! No, seriously! Here are my tips on that subject.
Read the rest of this entry