Skip to content

Instantly share code, notes, and snippets.

@fayimora
Created January 26, 2012 03:47
Show Gist options
  • Save fayimora/1680855 to your computer and use it in GitHub Desktop.
Save fayimora/1680855 to your computer and use it in GitHub Desktop.

application_helper:

 def img_name_help(name)
        name.gsub " ", "%20"
    end

view:

<%= image_tag img_name_help "rails copy.png" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment