Forum: Ruby on Rails Fleximage and RMagick on Dreamhost

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
26da40e8110b68ce27d8f755e36c656a?d=identicon&s=25 trivial (Guest)
on 2008-12-11 19:23
(Received via mailing list)
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
This topic is locked and can not be replied to.