changed dependency to rails 3