# Fleximage and RMagick on Dreamhost

**URL:** <https://www.ruby-forum.com/t/fleximage-and-rmagick-on-dreamhost/155436>\
**Category:** Rails\
**Created:** [December 11, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/fleximage-and-rmagick-on-dreamhost/155436 "2008-12-11T19:23:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trivial](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@trivial](https://www.ruby-forum.com/u/trivial)\
**Post date:** [December 11, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/fleximage-and-rmagick-on-dreamhost/155436/1 "2008-12-11T19:23:26Z")

</div>

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
