Я хотел бы проверить наличие файла с помощью скрепки. Когда я пытаюсь отправить форму, она откатывается, но по какой-то причине она ищет шаблон create.erb, который не существует. Я не получаю никаких сообщений об ошибках
class Image < ActiveRecord::Base
has_attached_file :photo,
:styles => {
:thumb => "100x100#",
:small => "750x750>" }
validates_attachment_presence :photo
class ImagesController < ApplicationController
before_filter :require_user, :only => [:new, :create]
def new
@image = Image.new
end
def create
@image = Image.new(params[:image])
@image.user = current_user
if @image.save
flash[:notice] = 'image uploaded'
redirect_to :controller => "images", :action => "index"
end
end
def show
@image = Image.find(params[:id])
end
с использованием драгоценного камня, версия 2.3.3