CFWheels – Find Through Association
When I first started learning CFWheels, I was so enamored with how simple it was to retrieve data from the database using the built-in ORM that I would code for days without taking full advantage of how much cleaner and simpler my code really could be. The more I worked with the ORM in Wheels, I learned more and more little tricks to help make my code much simpler. One of those tricks is to stop manually passing foreign keys into my find conditions and make the call through an association. Lets look at an example of how much more readable we can make our finder calls by taking advantage of relationships in CFWheels.
Dynamic Finders in CFWheels
One of the unexpected treats to using CFWheels is how much more readable it can make your code. Im not a big fan of inline comments because I believe in self-documenting code. One of the features of CFWheels that helps to achieve this is "Dynamic Finders". Lets take a look at how much more readable this often over-looked feature can make our finder calls.
ColdFusion on Wheels Version 1.1.2 Released
ColdFusion on Wheels has released version 1.1.3 today. This is mostly a bug fix release, but addresses a couple issues I had in 1.1.1 particularly. The upgrade is simple, just replace your current wheels folder with the new one from the zip file, reload your application and off you go. A list of all the issues fixed can be found over at the CFWheels blog. ColdFusion on Wheels Version 1.1.2 Released Today | ColdFusion on Wheels...
CFWheels Eclipse Dictionary Updated
A while back I created a dictionary file for Eclipse based editors that would provide code insight and code completion for the CFWheels methods. This works in both ColdFusion Builder and CFEclipse. Well, I finally got around to updating it for the CFWheels 1.1 release.
Using Partials In CFWheels To Keep DRY
One of the things I like about CFWheels is that its based on sensible conventions. If you follow these conventions, they can really save you a ton of time writing boiler-plate code as well as configuration. Working synergistically with these conventions are a lot of helper methods that will also reduce the amount of code you have to write as well as keeping your application DRY (Dont Repeat Yourself).






Recent Comments
Jason Dean on Pulling specific files from a commit using Git
Thanks Russ, very helpful. I needed this four hours ago ( I did it a much harder way). I...dcolumbus on CFWheels Eclipse Dictionary Updated
Ah, because of my excitement, I forgot to register the dictionary. Step 3 in the documentation you provided. THANSK!dcolumbus on CFWheels Eclipse Dictionary Updated
Hey Russ, thanks for taking the time to put this Dictionary together. I'm curious if you might be able to...Luis on Installing Git on CentOS 5
Yup, this worked better for me.James Aspinwall on Installing Git on CentOS 5
Thanks, thanks, thanks... Save me lots of time and trouble.