domain | viewcomponent.org |
summary | ViewComponents are objects that encompass a template. They are defined in the "appcomponentsmessage_component.rb" file and inherit from the "Base" class in the "ViewComponent" module. The ViewComponent is compiled onto the Ruby object using the "initialize" method, which takes the name parameter and sets it as an attribute of the component. This component can be rendered by calling the "MessageComponent" within a template, like in the "appviewsdemoindex.html.erb" file, where it outputs a greeting with the given name. |
title | Overview | ViewComponent |
description | A framework for building reusable, testable & encapsulated view components in Ruby on Rails. |
keywords | name, components, ruby, rails, templates, world, template, tests, code, object, class, unit, view, render, partials, single, methods |
upstreams |
phlex.fun |
downstreams |
github.com, gitlab.com, peopleforce.io, podia.com, teamtailor.com, workbrew.com |
nslookup | A 185.199.111.153, A 185.199.108.153, A 185.199.109.153, A 185.199.110.153 |
created | 2024-02-24 |
updated | 2024-10-23 |
|
|