flag-icons-rails
inline_svg
Our great sponsors
flag-icons-rails | inline_svg | |
---|---|---|
1 | 1 | |
34 | 685 | |
- | - | |
10.0 | 5.6 | |
almost 2 years ago | 6 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flag-icons-rails
inline_svg
-
Adding a Star Rating with Hotwire
The best way to style an SVG icon (which is one of the big advantages of the format, in my opinion) is to embed the SVG in the HTML document (render it inline with the rest of the HTML) and from there apply CSS styles as you might expect. There's a gem called inline_svg that we'll make use of to make that easier.
What are some alternatives?
flag-icons - :flags: A curated collection of all country flags in SVG — plus the CSS for easier integration
opal-rails - Bringing Ruby to Rails · Rails bindings for Opal
material_icons - A simple Rails wrapper for Google Material Icons
Decent Exposure - A helper for creating declarative interfaces in controllers
normalize_country - Convert country names and codes to a standard.
EasilyTypable - Ruby module that facilitates English-like type checking in an inheritance hierarchy via "type_name?" methods
premailer-rails - CSS styled emails without the hassle.
Rails Event Store - A Ruby implementation of an Event Store based on Active Record
Simple Form - Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
Rectify - Build maintainable Rails apps
Smart Init - Simple service objects in Ruby - A simple gem for eliminating Ruby initializers boilerplate code, and providing unified service objects API
Amoeba - A ruby gem to allow the copying of ActiveRecord objects and their associated children, configurable with a DSL on the model