https://github.com/amiel/weld-js-rails
A gem to automate using weld with Rails 3.1
https://github.com/amiel/weld-js-rails
Last synced: about 1 year ago
JSON representation
A gem to automate using weld with Rails 3.1
- Host: GitHub
- URL: https://github.com/amiel/weld-js-rails
- Owner: amiel
- Created: 2011-09-02T22:26:14.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-02T23:31:09.000Z (almost 15 years ago)
- Last Synced: 2024-03-15T07:24:07.575Z (over 2 years ago)
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weld-js-rails
Weld! For Rails! So great.
## Rails 3.1
This gem vendors weld for browser use in Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.
### Installation
In your Gemfile, add this line:
gem "weld-js-rails"
Then, run `bundle install`.
Add the following line to application.js
//= require weld
You're done!
### jQuery
If you'd like weld integrated with jQuery, add the following line to application.js after weld:
//= require weld-jquery
Then you can do this:
$('.contacts').weld([ { name: 'John' } ])
## Rails 3.0
This gem does not support Rails 3.0, just download weld from https://github.com/hij1nx/weld.