title: I would like to render the same page if new user is not save
body: <p>I would like to render on the same page if email is blank. However, when I leave in blank instead of staying on users/new. It goes to /users. It is still render to _from for the URL is different.</p>
  
  <pre><code>     def new
      respond_with(user)
    end
  
    def create
      if user.save
        user.send_invitation
        redirect_to root_url, notice: "Signed up!"
      else
        render "/users/new"
      end
    end
  
    def destroy
      @user = User.find(params[:id])
  
      if @user.destroy
          redirect_to root_url, notice: "User was deleted successfully!"
      end
    end
  
    def edit
      respond_with(user)
    end
  
    def update
      params[:user].delete(:password) if params[:user][:password].blank?
      params[:user].delete(:password_confirmation) if params[:user][:password_confirmation].blank?
      if user.save
        redirect_to users_path, :notice =&gt; "Saved your updates!"
      else
        render :edit
      end
    end
  </code></pre>