Perhaps my question wasn't asked very well because I didn't get any help. But I finally figured it out!

This is the line of code that was causing the problems:

&lt;%= image_tag question.image_url(:thumb).to_s if question.image? %&gt;


This is the line of code that worked:

&lt;%= image_tag f.object.image_url(:thumb) %&gt;


I'm not totally clear, but it appears that I was in my questions partial and calling a method called question and rails didn't know what I meant.

I found the answer in this stackoverflow QA: Rails Nested Forms With Images

Now I've got a working if statement so my users can change the image:

&lt;% if f.object.image? %&gt;
  &lt;%= image_tag f.object.image_url(:thumb) %&gt;
  &lt;%= f.file_field :image %&gt;
&lt;% else %&gt;
  &lt;%= f.file_field :image %&gt;
  &lt;%= f.hidden_field :image_cache %&gt;
&lt;% end %&gt;


Next I have to figure out how to change the value on the file_field button.

can't show an Image in my _form view in a nested model edit page
I am looking for a way to highlight or use different face of quoted text in plain text. It seems that there should be a sophisticated/enhanced text mode but I cannot find it. 

If there isn't a easy solution, can you let me know where should I begin to write a function?

Thank you very much!

A noob who has been using Emacs from 19.xx
