Sha256: 7a59196792e4e00bb2d1f3fa0f0a4a2e1cbd0a497f20a137ea58570ab1404fc3

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

=Overview
JQuery Cheats is a Gem that is designed toa add simple helper methods to your application 
making it easier to perform visual effects.  Right now, it produces inline JavaScript
although we are highly considering having it read and write to an external file using a
generator or allowing the inline.

==Installation

In your Gemfile add

gem 'jquery_cheats'

If you would like the most recent "Edge" type rails then you can use the github version.
However, if you choose this version it may not work.  For the github version use:

gem 'jquery_cheats',:git=>"git://github.com/plowdawg/jquery_cheats.git"

==USage VERSION >= 1.0.0

As of version 1.0.0 a railtie was introduced loading methods directly into ActionView.
This change makes it imposible to call it as it was previously called and use a more simpiler
syntax just because it is much shorter.  Version 1.0.0 still only has one method but now
is called just by:

mouseoverimage("/path/to/image1.png","/path/to/image1-hover.png")

==Usage VERSION < 1.0.0

As of the current version there is only one available method, future versions will
expand this.

-To have a image that changes on mouseover use this code in your view:

JQueryCheats::HoverImage.mouseoverimage("/path/to/image1.jpg","/path/to/hover/image1.jpg")

===Future Speculation

In the future we plan on cutting the syntax down to possibly just:

mouseoverimage("image1.jpg","image2.jpg)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery_cheats-1.0.0 README.rdoc