Generating controllers and routes