Skip to content

Commit

Permalink
Update Readme & fix helper view
Browse files Browse the repository at this point in the history
  • Loading branch information
José Antonio Yáñez Jiménez committed Mar 4, 2015
1 parent 7838a32 commit 4284eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Rails RateIt [![Gem Version](https://badge.fury.io/gh/berikin%2Fjquery-onoff-rails.svg)](https://badge.fury.io/gh/berikin%2Fjquery-onoff-rails.svg)[![Build Status](https://travis-ci.org/berikin/jquery-onoff-rails.svg?branch=v0.4.0)](https://travis-ci.org/berikin/jquery-onoff-rails)
Rails wrapper for the jQuery RateIt plugin with improved SVG images!
# jQuery OnOff Rails [![Gem Version](https://badge.fury.io/gh/berikin%2Fjquery-onoff-rails.svg)](https://badge.fury.io/gh/berikin%2Fjquery-onoff-rails.svg)[![Build Status](https://travis-ci.org/berikin/jquery-onoff-rails.svg?branch=v0.4.0)](https://travis-ci.org/berikin/jquery-onoff-rails)
Rails wrapper for the jQuery OnOff plugin

![demo](demo/onoff.gif)

Expand Down
3 changes: 2 additions & 1 deletion lib/onoff/view_helpers/action_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def onoff(options = {})
label = content_tag(:label, lbl, {
class: "onoffswitch-label", for: options[:target] })
input = content_tag(:input, nil, {
class: "onoffswitch-checkbox", id: options[:target] })
class: "onoffswitch-checkbox",
id: options[:target], type: "checkbox" })
lbl = ERB::Util.html_escape(input)
lbl += ERB::Util.html_escape(label)
content_tag(:div, lbl, { class: "onoffswitch" })
Expand Down

0 comments on commit 4284eae

Please sign in to comment.