Okay I've worked out it's getting the error because I don't have an
index action for my photographs controller.
My create action is pretty vanilla:
def create
@photograph = Photograph.new(params[:photograph])
if @photograph.save
flash[:notice] = "Successfully created photograph."
redirect_to new_photograph_path
else
render :action => 'new'
end
end
For some reason, after the form is submitted, the browser gets pointed
to
example.com/photographs/ WITH a trailing slash, and the model isn't
created. I even try very small files, same outcome. I'm on mediatemple
gs.