No commit activity in last 3 years
No release in over 3 years
Yeqs Sexybuttons provide a flexible way to use sexybuttons(http://sexybuttons.googlecode.com).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
 Project Readme

YeqsSexybuttons¶ ↑

This project rocks and uses MIT-LICENSE.

Installation¶ ↑

Install yeqs_sexybuttons as a gem and get it work with your rails 3 applications.

gem install yeqs_sexybuttons

Add yeqs_sexybuttons to your Gemfile.

gem 'yeqs_sexybuttons'

Generate the assets of yeqs_sexybuttons.

rails g yeqs:sexybuttons

Usage¶ ↑

Yeqs Sexybuttons provide a view helper to generate a sexybutton. First of all, your need to add a sexybuttons css to your layout.

<%= include_sexybuttons %>

this will produce html like:

<link type="text/css" media="screen" rel="stylesheet" href="/components/SexyButtons/sexybuttons.css" />

Generate a linkage.

<%= sexybutton('Google', 'http://www.google.com') do |b|
  b.color = 'orange'                # default is black
  b.image = 'google'                # optional
end %>

this will produce html like:

<a class="sexybutton sexysimple sexyorange" href="http://www.google.com"><span class="google">Google</span></a>

Generate a submit button.

<%= sexybutton('Simple Button') do |b|
   b.id = 'sbtn-id'
   b.style = 'custom'
   b.type = 'submit'
   b.color = 'orange'
   b.image = 'ok'
   b.html_options = { :rel => 'sbtn' }
 end %>

this will produce html like:

<button class="sexybutton sexysimple sexyorange custom" id="sbtn-id" rel="sbtn" type="submit"><span class="ok">Simple Button</span></button>