Sha256: 0d7627e0d56c73b984f945549aaca063885028e5f92b1feddb31bf8d11138fd3
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
# MathjaxRails A Ruby gem for including mathjax for Rails 3.x or above apps ## Installation Add this line to your application's Gemfile: gem 'mathjax_rails' And then execute: $ bundle Or install it yourself as: $ gem install mathjax_rails ## Usage add the following to config/routes.rb (you can change the name of course) ``` ruby mathjax 'mathjax' ``` add the script tag inside app/views/layouts/application.html.erb ``` rhtml <%= mathjax_tag %> ``` and it is done! To try it, write a simple formula, for example, \[\int_a^b f(x) dx=F(b)-F(a)\] ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathjax_rails-0.0.1 | README.md |