Skip to content

amiel/weld-js-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A gem to automate using weld with Rails 3.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published