inline_svg
Rectify
inline_svg | Rectify | |
---|---|---|
1 | 3 | |
685 | 591 | |
- | - | |
5.6 | 0.0 | |
6 months ago | 11 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.
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.
Rectify
-
How do you approach adding server side form validation rules on the fly (user defined forms)
I really like Rectify for form objects like this but you can use ActiveModel just fine. Here's Rectify's form object using ActiveModel: https://gist.github.com/Partytray/d74fd2a9d2ffa6da9b3fb9f929382927
-
Rectify Gem?
I recently stumbled across the rectify gem and it seems interesting but it doesn’t look like it has had any updates for several years. Is it still worth using?
-
Exposing records created through a Form Object
Rectify tidies this up nicely and uses whisper to give you some block handling of your commands. Take a look.
What are some alternatives?
opal-rails - Bringing Ruby to Rails · Rails bindings for Opal
Interactor - Interactor provides a common interface for performing complex user interactions.
Decent Exposure - A helper for creating declarative interfaces in controllers
Trailblazer - The advanced business logic framework for Ruby.
EasilyTypable - Ruby module that facilitates English-like type checking in an inheritance hierarchy via "type_name?" methods
Rails Event Store - A Ruby implementation of an Event Store based on Active Record
Light Service - Series of Actions with an emphasis on simplicity.
Smart Init - Simple service objects in Ruby - A simple gem for eliminating Ruby initializers boilerplate code, and providing unified service objects API
PageletRails - Improve perceived performance of your rails application with minimum effort
Amoeba - A ruby gem to allow the copying of ActiveRecord objects and their associated children, configurable with a DSL on the model
Clowne - A flexible gem for cloning models