Skip to content

Instantly share code, notes, and snippets.

@tomeara
Last active October 25, 2019 13:01
Show Gist options
  • Save tomeara/6515860 to your computer and use it in GitHub Desktop.
Save tomeara/6515860 to your computer and use it in GitHub Desktop.
Inline SVG for Rails
# Put this method in your helper file to render inline SVG
def inline_svg(path)
file = File.open("app/assets/images/#{path}", "rb")
raw file.read
end
@saroar
Copy link

saroar commented Aug 9, 2016

How to upload an sag to AWS S3 using Carrierwave? in my rails add, any help will be appreciated thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment