Update for new versions of rails.

Fixed options pasring.