make things work with Rails