hoangnghiem / rails_bootstrap_helper Goto Github PK
View Code? Open in Web Editor NEWTwitter bootstrap helper for Rails 3
Twitter bootstrap helper for Rails 3
gem -v simple_form
=> 2.0.6
When I bundle I get
Bundler could not find compatible versions for gem "simple_form":
In Gemfile:
rails_bootstrap_helper (>= 0) ruby depends on
simple_form (~> 2.0.2) ruby
simple_form (1.4.1)
Where is the problem coming from? simple_form version locked in the gem? my setup?
I also get (rails 4 app)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails_bootstrap_helper (>= 0) ruby depends on
railties (~> 3.0) ruby
sass-rails (~> 4.0.0) ruby depends on
railties (4.0.0)
just like you did with badge_tag, just duplicate and replace for label_tag
http://twitter.github.com/bootstrap/components.html#labels-badges
def icon_link_to(text, url, options)
icon = options.delete(:icon) if options.has_key?(:icon)
icon_tag = ''
if icon
icon_klass = ["icon-#{icon}"]
if options.has_key?(:white)
icon_klass << ["icon-white"]
options.delete(:white)
end
icon_tag = content_tag(:i, '', :class => icon_klass.join(' '))
end
link_to (icon_tag + " #{text}").html_safe, url, options
end
How do I use percent_input in my simple_form?
Please add example on read me
Check out http://getbootstrap.com/components/#badges
Need method for badge_link_to "blabbla", products_path, count: 18, level: 'danger'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.