# Fleximage undefined method

**URL:** <https://www.ruby-forum.com/t/fleximage-undefined-method/142988>\
**Category:** Rails\
**Created:** [July 14, 2008, 9:13am UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988 "2008-07-14T09:13:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [July 14, 2008, 9:13am UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988/1 "2008-07-14T09:13:29Z")

</div>

I’ve just tried to follow the tutorial on the wiki, but i’m running  
into a problem. On my “view” page, I’m receiving this error:

undefined method `formatted\_photo\_path’

… around this line:

\<%= image\_tag formatted\_photo\_path(@candidate, :jpg) %\>

Any help would be appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [July 14, 2008, 10:43am UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988/2 "2008-07-14T10:43:48Z")

</div>

I don’t know this tutorial, so a link would help.

But this kind of error normaly happens, if your  
routing isn’t setup correctly.

You should have something like  
map.resource :formatted\_photi

in your config/routes.rb

rake routes

on the command line gives you a list of routes  
defined in your project

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [July 14, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988/3 "2008-07-14T14:57:34Z")

</div>

Ok thanks. Will check the routes later on today.

BTW, the tutorial I was talking about is here:

> **[GitHub: Let’s build from here](https://github.com/)**
>
> GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...

Doens’t mention modifying my routes to get the plugin working.

Anyone who has used fleximage seen this before?

---

<div class="post-metadata">

**Author:** ![chris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/958977/32.png) [@chris](https://www.ruby-forum.com/u/chris)\
**Post date:** [August 6, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988/4 "2008-08-06T20:29:27Z")

</div>

The problem is that the tutorial doesn’t mention you need to change  
the name of that method as appropriate. In your case it’s likely to be  
formatted\_candidate\_path, not formatted\_photo\_path.

Donald
