Created
September 29, 2011 14:15
-
-
Save harmaty/1250806 to your computer and use it in GitHub Desktop.
Usage of gritter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Nothing</title> | |
</head> | |
<body> | |
<%= content_for :gritter do %> | |
<%= js add_gritter("This is a notice", :image => :success, | |
:title => "Notice", :sticky => false) %> | |
<% end %> | |
<%= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" %> | |
<%= include_gritter %> | |
<%= yield :gritter %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment