Frederick Cheung wrote: > On Dec 3, 11:00�am, denver <[EMAIL PROTECTED]> wrote: > >> def article_image_for(article) >> � � � � if article.article_image >> � � � � � � article_img = article.article_image.public_filename >> � � � � � � link_to image_tag(article_img), >> article.article_image.public_filename > > Is it not as simple as changing the above to > link_to 'click me', article_img > > ? > > > Fred
i see what you mean... i have made changes but now get the error....... Showing admin/articles/edit.html.erb where line #12 raised: undefined method `stringify_keys' for "/article_images/0000/0047/Photo_59.jpg":String Extracted source (around line #12): 9: 10: <% end %> 11: <% if(@article.article_image) %> 12: <%= article_image_for(@article) %> 13: 14: 15: -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---