Working with Resque? perform_later is at 1.0, you should use it

Last night, I released the 1.0 version of perform_later.Now or later?The gem is being used in production for over 6 months now, in a big-scale website (Gogobot), so I thought it’s time to put in some extra needed work, some major refactoring and to release 1.0. What’s new? 1.0 is basically the same in the core functionality, I refactored big bits of the codebase, it’s much cleaner and more readable then before (still need to work quite a bit on code documentation) Added the later method support for ActiveRecord models....

May 22, 2012 · 2 min · admin

undefined method `relation’ for nil:NilClass on Heroku

I host almost 100% of my open source projects on Heroku, it’s amazing how easy it is to setup and how “out-of-your-way” they are. Today, while working on one of my open source project I encountered this error: It was right after I deployed and migrated the database. After about 5 minutes of head scratching I came across an answer on stackoverflowsaying you have to restart your app after a migration for it to pick up on schema changes....

May 9, 2012 · 1 min · admin

10 Things You Didn’t Know Rails Could do

James Eduard Grey published a presentation of a talk he did in RailsConf. It is pure gold, so many tips and tricks, I promise you, some of these will be new even to the most experienced of Rails developers. 10 Things You Didn’t Know Rails Could do // Speaker Deck.

April 26, 2012 · 1 min · admin

Pivotal Tracker Git integration with ease

This post makes 2 assumptions You are working with Git You are working with Pivotal Tracker At Gogobot, we work with Pivotal Tracker (for various reasons). Pivotal Tracker has very good Git integration, when you commit (and push), the commits can show up as comments to the story. Another very good thing is that you can change the status of a story just by a commit, you can finish, deliver or anything else you might want....

April 17, 2012 · 1 min · admin

Decorating Devise’s current_user with Draper – Ariejan.net

A great trick to decorate the current_user method from devise using Draper. IMHO it’s actually applicable to any authentication system out there that is using current_user but that requires some testing. Decorators are an awesome way to remove logic from the view or the models, so the models have real business logic and the rest can be “decorated” with another class. If you are looking for more information about decorators, Ryan Bates has a great screencast about it here: http://railscasts....

April 15, 2012 · 1 min · admin

Find the source location of a method in your project

Ruby/Rails project sometimes make it hard to find the source location of a method. Sometimes, Duck typing, meta-programming and just plain bad design make it really hard to find where a method was defined and how. Luckily, there’s an easy way around this. So, here’s an example. A few moments ago, I came across this line: First thing I did (obviously) was going to the user class and searching for this method....

April 12, 2012 · 2 min · admin

Yehuda Katz : Tradeoffs and Choices, Why Ruby isn’t Python | RuPy :: Strongly Dynamic Conference on Blip

This video is a bit on the longer side definitely, but if you are a Ruby developer (not a beginner), you will find this talk very interesting.

March 21, 2012 · 1 min · admin

Pull Request #5340: Added wrapper tag for simple format, added test by KensoDev · rails/rails

Following my latest post about the simple_format, I think that it’s broken to assume only “p” tags are valid wrappers. So, I opened a pull request to Rails itself. Basically, it changes simple_format so you can pass in the wrapper tag you want, I found myself wanting a “div” or a “span” too many times. Pull Request #5340: Added wrapper tag for simple format, added test by KensoDev · rails/rails....

March 13, 2012 · 1 min · admin

Essential Sublime Text 2 Plugins and Extensions | Nettuts+

I switched from TextMate to Sublime Text 2. Been using it for months now and it keeps surprising me with how fast, smooth of an experience it is. If you are still using TextMate or something else, you need to look at this post. Essential Sublime Text 2 Plugins and Extensions | Nettuts+.

March 12, 2012 · 1 min · admin

Do your own Agile…

There’s a lot of buzz going on about software development methodologies, people talking about Agile, Kanban, Pair, XP and more and more. There’s not much people are talking about when it comes to a single developer. I have been a consultant/developer for the past ~3 years or so, working from home for several clients both in Israel and abroad (US mainly). During this time I gained tons of experience in knowing what works and what doesn’t, this may be specific to me, but I don’t think so, so I decided to share this knowledge....

March 8, 2012 · 5 min · admin