Forum: Ruby on Rails default view format / fleximage

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.
Rob L. (Guest)
on 2009-01-10 13:34
(Received via mailing list)
I've been having a problem of late with view formats. I am using the
FlexImage plugin to provide thumbnailing which adds its own view
tempaltes.

I would usually access a my resource via

http://localhost:3000/photos/1

Since photo is my model I would normally see the rendered
app/views/photos/show.html.erb
instead I am getting
app/views/photos/show.jpg.flexi

I am just wondering, is the view that is used defaulted to the first
alphabetically. Its very confusing I assumed that the format is
defaulted to html somewhere unless otherwise specified. If that is the
case in development I am getting the html view displayed, but in
production it defaults to jpg which is crazy. It seems to inconsistently
switch between the two.

Does this ring any bells with anyone?

RobL
http://www.robl.me
This topic is locked and can not be replied to.