Quick Tip: Getting array of checked values using Prototype

A quick tip for getting an array of values that are checked in a checkbox group, using the Prototype Javascript library which is part of Ruby on Rails.

Read more..

Rails in the Real World: Part 1

So as I mentioned in a previous posting, my manager was keen to do some sort of "proof of concept" after I did a quick Rails demo in a team meeting recently. So now I've got a particular application we built recently in mind as a something I can use to do my play around proof of concept. I have been thinking about a few issues that I will have to consider when building this application, and I hope to use this site as a forum for sharing my findings and hopefully getting some feedback (if anyone is still reading). Read on for what I'll be building, and what I've already found I need to consider..

Read more..

Quick Tip: Upgrading Frozen Rails

Another thing for me to do after my long hiatus with working with Rails was to upgrade the frozen Rails within my application to 1.1.4 (it was frozen at 1.0). It's not actually that hard, but the instructions in the release notes don't quite work. At least they didn't for me, maybe my install was broken.

Read more..

Quick Tip: "script/generate scaffold" doesn't create the controller

I ran into a problem when using script/generate scaffold recently. When I tried to use it to build a scaffolded controller for an existing model it would create the model and the directories required for the controller but not generate an actual controller file. There was no error message, and I was returned to the command prompt as if everything was okay. It took me awhile to figure out why it appeared that this generator wasn't working right.

Read more..

I'm back!

Okay, so I lied, it wasn't a quick hiatus. However I am back into it now, and should start updating again. Read on for a bit more!

Read more..

Hiatus and Quick Tip

I've been on hiatus due to getting married, I'm sure you'll forgive me! I haven't been spending much time at the computer let alone working on my site(s).

I do have a quick tip though, from a useful link, behind the fold.

Anyway, the extended family is leaving on April 9th so I will get back into some meaty stuff then.

Read more..

Tagging and HaBTM Relationships: Redux

After implementing tags on Junkheap I've decided to revisit the original article posted. I've updated the article to fix some issues. Read on for a quick rundown of the issues I found and fixed, in case you've read the article before and want to know why something doesn't work.

Read more..

Dynamic attribute based finders

I know, with an exciting headline like that you're all probably eagerly anticipating something fantastic! In reality, this is just a short post to point out something I hadn't noticed before in ActiveRecord that can simplify your code (assuming you don't know about it).

Read more..

Where's my fixture hash?!

I'm not ready to write up testing more thoroughly yet, however I did run into one problem that had me confused for awhile with regards to Fixtures.

Read more..

Site updates and coming soon..

I've had to make some changes to this site because of some comment spam I've been getting. I'll also give some idea as to what I plan to write about next.

Read more..

Page 1 of 4 Next >