updated rails dependency
fixed deprecated railties calls