inline_svg
turbo-movies
inline_svg | turbo-movies | |
---|---|---|
1 | 2 | |
685 | 4 | |
- | - | |
5.6 | 2.6 | |
6 months ago | almost 2 years ago | |
Ruby | Ruby | |
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.
turbo-movies
-
Adding a Star Rating with Hotwire
This post walks through the process of adding a rating system to a Turbo powered single page application. The application in question was built up in a previous post. If you want to follow along with the post, you can grab the repo at the starting point or just read the pull request.
-
Making a Single Page Search with Hotwire
The starting point is heavily based on 'Using Hotwire with Rails for a SPA like experience' by Mike Wilson. If you want to follow along with this post you can use the starting point here on Github or follow along through that post. You should have a simple app where you can select a movie without reloading the page, with only a very simple rails controller.
What are some alternatives?
opal-rails - Bringing Ruby to Rails ยท Rails bindings for Opal
Decent Exposure - A helper for creating declarative interfaces in controllers
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
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
Waterfall - A slice of functional programming to chain ruby services and blocks, thus providing a new approach to flow control. Make them flow!
SuperModule - SuperModule allows defining class methods and method invocations the same way a super class does without using def included(base). This also succeeds ActiveSupport::Concern by offering lighter syntax
Rocketman - ๐ Rocketman help build event-based/pub-sub code in Ruby
Setsy - Settings for classes backed by a database with defaults.
Mutations - Compose your business logic into commands that sanitize and validate input.