Roli on Rails · @roli
10 followers · 7 posts · Server ruby.social

TIL how to capture all the output of a block when doing your own slot like API for

The trick is to use `viewcontext.capture(data_to_yield, &some_block)`

github.com/RolandStuder/til/bl

#ViewComponent

Last updated 2 years ago

Roli on Rails · @roli
10 followers · 7 posts · Server ruby.social

Ever since using the elegance and simplicity of I have been wondering, if I can't reach some of that expressiveness with : rstuder.ch/2023-calling-view-c

#phlex #ViewComponent

Last updated 2 years ago

Paul Sadauskas · @Paul
85 followers · 621 posts · Server ruby.social

Thoughts on having ActiveRecord queries within a ViewComponent? I've got a sidebar component that's used in several controllers, but not the whole app, and need to load some data for it. I feel like I'm re-inventing React "smart" vs "dumb" components...

#ruby #ViewComponent

Last updated 2 years ago

Dan Healy · @danhealy
28 followers · 84 posts · Server ruby.social

This blog post about Turbo Streams + by @jasonyork was helpful to me! It demonstrates how all of the pieces fit together and includes recent changes as of turbo-rails 1.4.0 to help rendering, introduced by @joeldrapper

predicatemethod.com/posts/usin

#rubyonrails #ViewComponent #hotwire

Last updated 2 years ago

Joel Drapper :whyfox: · @joeldrapper
1157 followers · 1938 posts · Server ruby.social

Congrats to the team for releasing 3.0 today. 👏👏👏 github.com/ViewComponent/view_

#ViewComponent

Last updated 2 years ago

Joel Drapper :whyfox: · @joeldrapper
1033 followers · 1492 posts · Server ruby.social

Turbo Rails 1.4 was released a few days ago with my PR, which means you can now render or components as turbo stream content. 🎉
github.com/hotwired/turbo-rail

#phlex #ViewComponent

Last updated 2 years ago

Hans Lemuet · @Spone
27 followers · 13 posts · Server ruby.social

Exciting times for ViewComponent!

v3 release candidate is available for testing
github.com/ViewComponent/view_

v2 beta is just out, including preview embeds, support for components and ActionView partials, and a completely rewritten file watching/live updates system!
github.com/ViewComponent/lookb

And ViewComponent::Form has an updated roadmap to v1
github.com/pantographe/view_co

We'd love to have your feedback on this!

#ViewComponent #lookbook #phlex

Last updated 3 years ago

Hans Lemuet · @Spone
27 followers · 13 posts · Server ruby.social

@stevediaconou mind contributing this to the (work in progress) Cookbook?
github.com/ViewComponent/view_

#ViewComponent

Last updated 3 years ago

Nicolas Buduroi · @budu
11 followers · 27 posts · Server ruby.social

It's about time I get rid of legacy & that has been weighting me down for years. Going with + + @evilmartians is helping as usual evilmartians.com/chronicles/vi

#coffeescript #jquery #importmap #stimulus #ViewComponent

Last updated 3 years ago

Joel Drapper :whyfox: · @joeldrapper
546 followers · 435 posts · Server ruby.social

I’m really glad I didn’t go all-in on like when writing . There’s no dependency on Rails at all — we have our own helpers, our own integration, our own output buffer, etc. I’m excited to build adapters for Hanami and others.

#rails #ViewComponent #phlex #i18n

Last updated 3 years ago

Zee Spencer (He/They) · @Zee
383 followers · 1067 posts · Server social.coop

Wooo! ::Base.with_collection now supports Components with splatted keyword args: github.com/ViewComponent/view_

Glad to do my part to help the ecosystem; especially on such lovely tools!

#ruby #opensource #ViewComponent

Last updated 3 years ago

Zee Spencer (He/They) · @Zee
382 followers · 1058 posts · Server social.coop

We did so much!

1. Kelly and I worked on making Marketplace's Products editable: github.com/zinc-collective/con
2. And @anaulin added our first : github.com/zinc-collective/con

We do this every week from 5PM to 7PM PT; and we focus on building , , , and fluency while creating community-owned tools for the and

#solidarityeconomy #cooperative #ruby #rspec #tailwind #rubyonrails #ViewComponent

Last updated 3 years ago

Zee Spencer (He/They) · @Zee
382 followers · 1056 posts · Server social.coop

Patch in to so CI will pass: github.com/ViewComponent/view_

So that it can support splatted keyword args: github.com/ViewComponent/view_

It's nice to have the spaciousness in my schedule to make small fixes!

#ViewComponent

Last updated 3 years ago