Archive for the 'Ruby on Rails' Category
Rolling with Rails 2.0RC1
I’ve never been a fan of using rake to download EdgeRails. To me it never seemed to make sense that you would make a Rails project generated by one version and then download the Edge version into the plugins directory. So with that in mind I’m going to tell you how I roll [...]
Since being introduced to YAML I’ve loved using it for configuration files in both Ruby and Ruby on Rails. YAML means “YAML Ain’t Markup Language”. Yes, there is an infinite loop in the title - it’s programmer humor. Those of you familiar with Ruby on Rails are somewhat familiar with YAML because [...]
Formatting Names Using Ruby
Getting information from users is a common task that we have to deal with in building an application. This typically happens either in creating a user account, commerce orders, or any other time when the application has to ask “who are you?”. Often times we’ll create a field for both a firstname and [...]
For those of you that are already familiar with the Rails framework you already know that the Rails logs are completely invaluable when it comes to debugging and troubleshooting issues. However, just as with any form of transaction logs they introduce a major security issue.
Just think about some of that information that you might be [...]
So yesterday something happened. Out of nowhere. I began to “get it”. All this stuff I was so confused about regarding Rails and Ajax - the holes in my understanding of DOM manipulation. Now I’m not making claims by any means that I’ve turned into some expert. I’m simply stating that I’m starting to finally [...]
Rails Solutions Contest Winner
So I just found out that I am one of the 5 winners of DMXZone’s most recent content to win a copy of FriendsofED book Rails Solutions. Coming from someone that has never really won anything I am really please to have been one of the 5 out of all of the people I’m [...]
Web 2.0: Day 1 - Workshops
So today was the start of the Web 2.0 Expo for those of us attendees registered for the workshops. The official beginning tomorrow for the other sessions and expo hall.
I’m slowly getting used to Pacific Time, thought it’s 10pm here and I think I’m still about 1-2 hours off. So the workshops…
The [...]
So you are sitting there around the house watching reruns of Smallville and Seinfeld and you think, “I wish I could jump onto the CSS Naked Day bandwagon with my Ruby on Rails application”, well you are in luck. Conditional statements in Rails are a piece of cake and with logical expressions like “unless” [...]
So for those of you that ran through the and created your very own random testimonial helper, I’m going to create another help to and were are going to make a few updates to our partial. First we have to do a few things:
Rename our _random_testimonial.rhtml partial to _testimonial.rhtml
Open our partial and remove the [...]
So back in February Jeff Atwood over at codinghorror.com was talking about a puzzle to give prospective new-hires when interviewing them entitled “Fizzbuzz”. You can read more about it here.
So with a little thought I decided to solve the fizzbuzz puzzle using Rudy and an Array.
count = 0
100.times do
count += 1
fb = [...]