On Tue, Apr 21, 2009 at 1:35 AM, Simon Macneall <[email protected]> wrote:
>
> The only problem with HTML is that I can't find a way to embed the image
> (that works in Word), as opposed to having it link back to our server (which
> isn't the desired outcome).
I am using this approach on a project with success. The only gotcha
is that you have to use the full URL of the image, instead of just the
path that Rails generates.
Here's a helper method I used:
def image_url(img)
request.protocol + request.host_with_port + image_path(img)
end
Hope that helps
-- Brandon
--------------------------------------------------------------------------------
Idea Foundry: training takes a Holiday
http://ideafoundry.info – Refer a friend and get $100
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---