inkompatible Zeichensätze: UTF-8 und ASCII-8-BIT render-Aktion

ActionView::Template::Error (inkompatible Zeichensätze: UTF-8
und ASCII-8BIT): app/controllers/posts_controller.rb:27:in `new'

  # GET /posts/new
  def new
    if params[:post]
      @post = Post.new(post_params).dup
      if @post.valid?
        render :action => "confirm"
      else
        format.html { render action: 'new' }
        format.json { render json: @post.errors, status: :unprocessable_entity }
      end
    else
      @post = Post.new
      @document = Document.new
      @documents = @post.documents.all
      @document = @post.documents.build
    end

Ich weiß nicht, warum es passiert ist.

  • die Edelstein-verwenden Sie für die db??
Schreibe einen Kommentar