Devise : Passing params to after_* paths

Devise allows us to customize after_signup_path by overriding a protected method in RegistrationsController.

VERP on Rails

We sent newsletter campaigns from our Rails app. One of the main requirement of such campaign is how many emails bounced?. We need to track all bounced emails and map them again to a specific campaign because there will be multiple campaigns going on all the time.

jQuery append and clone

I was trying to append some part of the DOM to some other element of the page.

enable minitest again

If you have skipped minitest/test-unit while creating a rails app with -T or want to move to minitest from rspec or want to start with minitest in an existing rails project without tests, its very easy.

preload associations with `find_by_sql`

I have a very complex query which is made up of more than 1 subqueries. Arel is awesome, but it can't generate that query. So i generate those subqueries separately and combine them by union or intersection based on some condition. Finally the generated query is given to find_by_sql to get the data.

facebook app with multiple subdomains

I had a requirement of adding facebook integration with our Rails app. I am using omniauth-facebook gem for the authentication part and it works great.

conditional where in rails


Mount SD Card on Fedora

I attended Raspberry Pie meetup this weekend. We had lot of fun there playing with Pie. After coming home, i wanted to try all those things on my Pie. But first step is to prepare a image for it.

Using `rails-api` with Rails 3

rails-api is an awesome gem to design API for API-only applications. One more interesting thing about rails-api is, it doesn't have separate versions for Rails 3 and Rails 4.

Installing racket on fedora

As root user

blog comments powered by Disqus