view_component
Ahoy
Our great sponsors
view_component | Ahoy | |
---|---|---|
74 | 15 | |
3,148 | 4,081 | |
1.3% | - | |
9.0 | 7.5 | |
2 days ago | 15 days 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.
view_component
- Things I wish I knew before moving 50K lines of code to React Server Components
-
Supercharged table component built with ViewComponent
When searching for examples of table components built with the ViewComponent gem, I was surprised to find none. After some inquiries, I came across examples that worked like this:
-
More expressive APIs for View Components
View components offer two primary ways to interact with the component: passing arguments to the initializer and using slots:
- Have you been using ViewComponent. What advantages do you see in it?
-
How can I integrate VueJS into a rails 7 application? What is the workflow?
For example, splitting out views into partials? Or the new ViewComponent feature that's becoming quite popular - https://viewcomponent.org/
- Helpers vs Components
-
Vanilla Rails view components with partials | Stanko K.R.
I used to do "pure ruby" approach to that -- but basically wound up realizing I was re-inventing github's view_component. Their design goals were similar enough to what I was trying to do, that it made more sense just to use that, rather than try to re-invent it myself.
-
Gnarly Learnings from March 2023
ViewComponent
- Os benefĂcios de componentizar as views do Rails
-
Does anyone kind of miss simpler webpages?
The linked one is my Rails implementation, written for ViewComponent. The official version uses Nunjucks.
Ahoy
-
Ahoy Captain: a full-featured, mountable analytics dashboard
A full-featured, mountable analytics dashboard for your Rails app, which is a blatant rip-off of heavily inspired by Plausible Analytics, powered by Ahoy. Open source, though lots of changing parts: https://github.com/joshmn/ahoy_captain
-
Best rails tools to automatically handle logging of things like all a user's actions, or changes to a record in a module - primarily for audit purposes.
For logging which functions were used you can use ahoy
-
How would you build an audit log in Rails for a high-throughput API?
Ahoy may be worth a try https://github.com/ankane/ahoy
- Want to keep track of URL visits, what's the simplest way to do achieve this?
-
Italian watchdog bans use of Google Analytics
I've slowly started ripping Google Analytics out of my Rails projects and replacing it with https://github.com/ankane/ahoy.
It's so much better! I can just use SQL to see what's going in and not get overwhelmed with 100's of visualizations and complicated dashboards.
-
Need some good documentation on implementation or tutorial video for AHOY gem
it's just a database table, so yeah, a migration is fine: https://github.com/ankane/ahoy/issues/461
-
Make Ahoy Queries faster?
I'm using the ahoy gem for analytics on my website (https://github.com/ankane/ahoy).
-
Cookie-based tracking is dead
I did server-side tracking test in a rails app, where I implemented a tracking gem called ahoy and blazer for visualization. It is very easy to set up, but a bit hard to use. Blazer can do a very basic visualization of the data if you know your SQL queries.
-
How would you build/record/store analytics data ;
https://github.com/ankane/ahoy The ahoy gem is pretty useful for this. Data model is pretty simple, it will track unique user sessions and metrics you specify will be associated with these sessions. The gem also parses the user agent, so it will indicate whether a session was on mobile, desktop or tablet.
What are some alternatives?
Stimulus - A modest JavaScript framework for the HTML you already have
Impressionist - Rails Plugin that tracks impressions and page views
turbo-rails - Use Turbo in your Ruby on Rails app
Legato - Google Analytics Reporting API Client for Ruby
Tailwind CSS - A utility-first CSS framework for rapid UI development.
active_analytics - First-party, privacy-focused traffic analytics for Ruby on Rails applications.
cypress-rails - Helps you write Cypress tests of your Rails app
Staccato - Ruby library to perform server-side tracking into the official Google Analytics Measurement Protocol
hotwire-rails - Use Hotwire in your Ruby on Rails app
Gabba - Simple way to send server-side notifications to Google Analytics
i18n-tasks - Manage translation and localization with static analysis, for Ruby i18n
Analytical