Software Engineering in WordPress, PHP, and Backend Development

Category: Notes (Page 43 of 49)

Notes on programming-related problems that I’ve encountered while working on various projects.

Adding :confirmable To Users in Devise

Update 2/16/2012: I’ve posted this to an article on the Devise wiki. It’s likely that the article will continue to be updated by the community on GitHub. If this article appears out of date, refer to the wiki.

One of the challenges of working with Devise is that you may end up introducing functionality into the authentication layer long after initial requirements have been built.

I recently needed to add email notifications for user account creation. That worked fine, but all of the existing user accounts were left unconfirmed.

Continue reading

Sending Email with Devise on Site5

Site5 is my host of choice when it comes to Ruby on Rails hosting. At this risk of sounding like a sponsored post, their dashboard, hosting options, customer service, and uptimes are solid.

I’m working on a project in which I’m using Devise for the authentication system but had a bit of a time getting the application to properly send email notifications.

According to Google results, this seems to be a relatively common problem so I’m sharing my configuration options here:

Continue reading

On Color and The Lean Startup Philosophy

The reasons why Color appears to be imploding can’t be known for sure, but the whole thing looks like a lesson in the Lean Startup philosophy. Perhaps best articulated by consultant and author Eric Ries, the Lean Startup philosophy says the last thing you want to do is raise a whole lot of money, build a product in secret, then spring it on a world that may not want what you’ve built at all.

Color isn’t so much a lesson in the Lean Startup Philosophy as much as an argument for it.

(via Read, Write, Web | h/t John)

Easy Sorting Helper For Rails 3

If you’re working with sorting large data sets in Rails, I’d usually recommend using something like the sorted gem to handle the work for you, but if you’re dealing with relatively small datasets, sometimes it’s just easier to roll your own helper.

I’m currently working on a project in which there are a small number of users in the system. Each has a first name, last name, email, and position column and I wanted to be able to easily sort the columns whenever a user clicks on the column header in each cell.

Continue reading

« Older posts Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑