0.0
No commit activity in last 3 years
No release in over 3 years
A gem to automate using weld with Rails 3.1
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.1
 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.