Full text search on Heroku
If you want to have full text search capability on Heroku, you should definitely use texticle or acts_as_tsearch. It is possible to use acts_as_farret on Heroku, but since you can only write to /tmp...
View ArticleRVM and Heroku
Make sure you run it twice – once with sudo and once without – for it to work properly. $sudo gem install heroku $gem install heroku
View ArticlePretty Permalinks on Rails
Hot dang it’s so easy! I am using Rails 3, and it’s as easy as adding .parameterize to an attribute. For example, if you want something like http://mywebsite/posts/123-it-is-so-easy You do class Post...
View ArticleFresh installation of Ruby, Rails, Git, RubyGems, and Postgresql 8.x
Most people need to do this only when they get a new system. I had to go through this to help out a potential brogrammer, and it would have been much easier if I pointed him to one place where …...
View ArticleHow to install KidsRuby on Mac OS X and Ubuntu
I have two kids, and I have been wanting to find ways to introduce my kids to programming. Especially for my son, who has asperger syndrome. I thought programming would be a good way to use his...
View ArticleFacebook Connect with Rails (using Omniauth and Devise) [Update]
This is an update to my last post about Facebook Connect with a Rails app. At the time I was using facebooker plugin (yeah, a plugin, not a gem), which has been discontinued for the longest time, and...
View ArticleSimple Ruby on Rails app using Twilio API
Twilio created cloud telephony services made mainly for developers. I’ve been meaning to figure out how to use their service, and I had a chance to develop a Ruby on Rails app using Twilio app called...
View ArticleUser-friendly 500 and 404 pages on Rails 3
This came in handy for me, so I wanted to share this particular way of handling 404 and 500 errors. First, rescue errors and tell what to do in application_controller.rb. if Rails.env.production?...
View ArticleMongoDB Query Performance Gotchas
At my current job, we use mongodb as our main database and as you can imagine we query our database a lot. The followings are what I found while investigating some slow performance. Hopefully it will...
View ArticleWhen JSON encoding does not play well with character encoding
There comes a time for a developer to face a bug so weird that it leaves him/her speechless and scramble to find an answer wherever possible. After seemingly innocent deployment to production, I...
View Article
More Pages to Explore .....