view_component
Annotate
Our great sponsors
view_component | Annotate | |
---|---|---|
74 | 9 | |
3,148 | 4,327 | |
1.3% | - | |
9.0 | 2.4 | |
2 days ago | 9 days ago | |
Ruby | Ruby | |
MIT License | Ruby 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.
Annotate
-
Must-have gems for mature Rails
gem "annotate" - https://github.com/ctran/annotate_models | Adds DB-schema comments to models. May be unnecessary on RubyMine, YMMW.
-
I spent the past 3 months working on a fork of the Annotate models gem
I believe Ctran is aware of this based on his response in this issue https://github.com/ctran/annotate_models/issues/913
-
What was the name of the gem that finds all unindexed foreign keys?
A gem that's pretty useful alongside this one is the annotation gem -- it prefixes models with their specific schema dump (as comments) and then updates those descriptive comments on migration. It's one of my go-to gems to install when I rotate onto a new-to-me Rails project (or start a new one) and I'm working to understand the data model.
- Cansado de conferir o schema.rb
-
Could really use some help with a plugin rake task issue
Have you looked at annotate for inspiration?
-
The database and migrations work is annoying me the most about Rails as a newcomer, am I missing something?
I get it, though. Sounds like you're used to seeing every column definition in there. And that would be handy. There is a gem that you might like: https://github.com/ctran/annotate_models
-
Rails application boilerplate for fast MVP development
annotate for annotations
What are some alternatives?
Stimulus - A modest JavaScript framework for the HTML you already have
Apipie - Ruby on Rails API documentation tool
turbo-rails - Use Turbo in your Ruby on Rails app
RDoc - RDoc produces HTML and online documentation for Ruby projects.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
YARD - YARD is a Ruby Documentation tool. The Y stands for "Yay!"
cypress-rails - Helps you write Cypress tests of your Rails app
GitHub Changelog Generator - Automatically generate change log from your tags, issues, labels and pull requests on GitHub.
hotwire-rails - Use Hotwire in your Ruby on Rails app
rspec_api_documentation - Automatically generate API documentation from RSpec
i18n-tasks - Manage translation and localization with static analysis, for Ruby i18n
Asciidoctor - :gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.