Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created May 19, 2009 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/114068 to your computer and use it in GitHub Desktop.
Save mrchrisadams/114068 to your computer and use it in GitHub Desktop.
##How to turn this into a helper with it's own form, to hide put an image behind a POST request?
# <%= image_button_to "path_to_image/png"", _action_model_path(object), :title => "title for link" %>
<% form_tag _action_model_path(object) do %>
<%= image_submit_tag "path_to_image/png", :title => "title for link" %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment