Sha256: 9e37f099f8dbe5a820441077d2ad716e177a6fd3c8748a1797daea5311e3762b
Contents?: true
Size: 1.36 KB
Versions: 4
Compression:
Stored size: 1.36 KB
Contents
= 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>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yeqs_sexybuttons-0.0.7 | README.rdoc |
yeqs_sexybuttons-0.0.6 | README.rdoc |
yeqs_sexybuttons-0.0.5 | README.rdoc |
yeqs_sexybuttons-0.0.4 | README.rdoc |