Permalink
Browse files

Fix formatting in README

  • Loading branch information...
1 parent cf78683 commit b2f7582b5c3b47e4508893723de550856ff6e7db @bowsersenior bowsersenior committed Aug 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
@@ -82,7 +82,7 @@ If you would like to access values stored in Yacht inside of javascript, there i
# remember that any values exported to javascript will be visible to all visitors to your site
- cookie_domain
-Then use +Yacht::Loader#to_js_snippet+ to create a string that can be eval'd or included in the DOM:
+Then use <tt>Yacht::Loader#to_js_snippet</tt> to create a string that can be eval'd or included in the DOM:
Yacht::Loader.to_js_snippet
# => ";var Yacht = {\"cookie_domain\":\"example.com\"};"
@@ -95,7 +95,7 @@ You can also add in extra values from outside of Yacht using the :merge option,
=== +yacht_js_snippet+ Rails helper
-When using Yacht inside of a Rails application, you can use the +yacht_js_snippet+ method to wrap the string from +Yacht::Loader#to_js_snippet+ in a script tag using Rails' +javascript_tag+ helper.
+When using Yacht inside of a Rails application, you can use the +yacht_js_snippet+ method to wrap the string from <tt>Yacht::Loader#to_js_snippet</tt> in a script tag using Rails' +javascript_tag+ helper.
Yacht.rails_env
# => "development" # Yacht automatically adds the current Rails environment in ruby

0 comments on commit b2f7582

Please sign in to comment.