Saturday, May 2, 2015

Re: [Rails] Multiple controller with associated view calling Application Helper to get image path... not working

Walter,

Thank you very much....

It was not apparent to me this this group was an email group... Now I understand.  When I first discovered this site I understood it as a forum...

Anyway.... You have totally helped me.  My Application Helper now reads:

  def get_image_path(sought_image_file_name)

    return_string = ''
    unless sought_image_file_name.blank?
      return_string = "/images/item_images/" + sought_image_file_name
    end
    return_string
  end

I tested it several times and it is now working.... 

I thank you very much....

Liz


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8573c723-e81a-4512-b43e-94b0f15fdabc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment