Rails 3 Render => New with Parameter
问题 I'v read: Rails: Pass parameters with render :action? ,but I'm still having problems. My URL for the new page is: http://localhost:3000/submit?category_id=2. Submitting the form the first time works without any problems, but if the creation fails and the controller renders a new page I get an error can't find category without id because the parameter is not being passed. Here's a short version of the new.html.erb and new/create controllers def new ... @category = params[:category_id] @title =