Replaced calls to  with RailsResource