# Default view format / fleximage

**URL:** <https://www.ruby-forum.com/t/default-view-format-fleximage/157388>\
**Category:** Rails\
**Created:** [January 10, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/default-view-format-fleximage/157388 "2009-01-10T12:34:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/838e76/32.png) [@rob](https://www.ruby-forum.com/u/rob)\
**Post date:** [January 10, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/default-view-format-fleximage/157388/1 "2009-01-10T12:34:44Z")

</div>

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](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

> **[Posts](https://www.robl.me/)**
>
> I write thems codes
