Hi,
I installed Fleximage with RMagick on InstantRails and had it working
on my development box.
When I moved to the production box on Dreamhost, I started to get the
following error when I tried to render images:
===========================
Processing PhotosController#show to jpg (for 86.145.229.162 at
2008-12-11 08:49:18) [GET]
Parameters: {“id”=>“1”}
Rendering photos/show
ActionView::TemplateError (wrong number of arguments (2 for 1)) on
line #1 of app/views/photos/show.jpg.flexi:
1: @photo.operate do |image|
2: image.resize ‘240x160’
3: end
app/views/photos/show.jpg.flexi:1:in `render'
app/views/photos/show.jpg.flexi:1:in
`_run_flexi_app47views47photos47show46jpg46flexi’
Rendering rescues/layout.erb (internal_server_error)
The line #1 does not refer to something in my show.jpg.flexi file, as
I get the same error when all lines are commented out.
Does anyone know what this error message means ?
Here is my config:
-
class ApplicationController < ActionController::Base
require “rubygems”
require ‘RMagick’ -
class PhotosController < ApplicationController
require ‘RMagick’
include Magick -
class ApplicationController < ActionController::Base
require ‘RMagick’
include Magick -
class Photo < ActiveRecord::Base
require ‘RMagick’
include Magick -
show.jpg.flexi
@photo.operate do |image|
image.resize ‘240x160’
end -
show.html.erb
<%= image_tag formatted_photo_path(@photo, :jpg) %>
Thanks,
SBM