fix Rails views and routes