by fadhli
on 05. Aug, 2010
in Ruby On Rails
Facing another bug while integration my rails project with twitter using authlogic-oauth and was facing a problem while running my cucumber test. In my step definition file, I was trying to create a simple User object and the error I was getting was as follow: undefined method `params’ for nil:NilClass (NoMethodError) Upon further investigation. The [...]
by fadhli
on 05. Aug, 2010
in Ruby On Rails
I was trying to run an Authlogic OAuth Twitter example application on my local development machine and kept getting OAuth::Unauthorized (401 Unauthorized) error. Turns out, you have to register your app as a Twitter OAuth client at http://twitter.com/oauth_clients/. If you’re registering your application as web browser, don’t forget to fill in the callback url. When [...]
by fadhli
on 03. Aug, 2010
in Ruby On Rails
Recently, I had created a rails app which allows people to login with their Facebook account. Thanks to a few existing gems and plugins, the facebook connect integration was straight forward enough. A few gotchas but easily fixed. However what had got me stump for a few hours was deploying my rails app on a [...]
by fefe
on 16. Mar, 2010
in Rails, Ruby On Rails
My colleague and I were working on a feature to apply dynamic subdomain name in one of our rails apps. Since a lot of documentation out there only focus on how to host subdomain app by configuring the /etc/hosts file. I reckon I share some insight on how to actually enable dynamic subdomain in your [...]
by asyraf
on 01. Feb, 2010
in Agile, Tutorials
Last week we had the excellent opportunity to host the agile, XP planning game at Plug and Play in Midvalley, KL. We had a lot of fun, and from what we saw after the game, so did the participants – it’s a great ice breaker, and great learning tool to understand the complexities of XP [...]
by fadhli
on 19. Jan, 2010
in Programming, git
We’ve been using git for as our version control management system since the day we started, and have never looked elsewhere. It’s fast and easy to use and with github, it’s even gone social! So, for those of you who have heard of git, but don’t really know how it works, and are interested to [...]
by fadhli
on 23. Oct, 2009
in Ruby
I’ve been meaning to start using ruby1.9 but always stuck at maintaining codes in production that depends on Ruby1.8.6. Fortunately, there’s this thing called Ruby Version Manager where you easily change between different rails version. I have nothing but praise for the guys who made life easier for us programmers to do our job better [...]
by fadhli
on 22. Oct, 2009
in Rails
Have been tinkering around with authlogic. The most I love about is its out-of-the-box functionality. I used to wrestle with restful_authentication to get certain things that I need. Not in anyway that I’m bashing it but seeing how easy authlogic I couldn’t believe why I didn’t use it sooner. I like it so much that [...]
by fadhli
on 16. Sep, 2009
in HTML & CSS
I tried to update a HTML div elevement wrapping around a table row inside a table. <table> <tr> <td>Pomme</td> </tr> <div id="placeholder"> <tr> <td>SomethingElse</td> </tr> </div> </table> I wasted 1 hour to find out why my ajax calls aren’t updating the right table row. Apparently it’s not valid HTML. The div will always be on [...]
by fadhli
on 14. Jun, 2009
in Rails
Getting your bug fix/code pulled into the main repo really gets you excited & satisfied. I never thought it could give me this much sense of enjoyment. Check it out. http://github.com/dmix/weekly_builder/tree/master