Path defined in controller and action is getting ignored, Ruby on Rails
问题 According to http://guides.rubyonrails.org/layouts_and_rendering.html I should be able to define the path from a different controller as I have done in my create action in my micropostscontroller: def create @micropost = current_user.microposts.build(params[:micropost]) if @micropost.save flash[:success] = "Micropost created!" redirect_to profile_path else render 'static_pages/profile' end end When I unsuccessfully create a post, however (leave it blank or make it too long), the page '