Skip to content

Commit

Permalink
Do not mention link_to_function in merb-assets README.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed May 20, 2008
1 parent 3b25702 commit 4a9f68f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions merb-assets/README
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Quick overview of the API
# image_tag creates img tag.

# escape_js escapes JavaScript.
# link_to_function creates anchor tag that has onlick event with JS function.
# js method translates object into JSON.

# require_js is smart(-er) way to do includes just once per page no matter
Expand Down Expand Up @@ -248,12 +247,4 @@ Utility methods examples
#=> "http://assets3.my-awesome-domain.com/stylesheets/somearbitrary.css"

uniq_path('/images/hostsexypicture.jpg')
#=>"http://assets1.my-awesome-domain.com/images/hostsexypicture.jpg"


link_to_function('Click me', "alert('hi!')")
# => <a href="#" onclick="alert('hi!'); return false;">Click me</a>

link_to_function('Add to cart', "item_total += 1; alert('Item added!');")
# => <a href="#" onclick="item_total += 1; alert('Item added!'); return false;">Add to cart</a>

#=>"http://assets1.my-awesome-domain.com/images/hostsexypicture.jpg"

0 comments on commit 4a9f68f

Please sign in to comment.