# What about components

**URL:** <https://www.ruby-forum.com/t/what-about-components/123025>\
**Category:** Rails\
**Created:** [December 13, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/what-about-components/123025 "2007-12-13T14:30:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ce7236/32.png) [@laurent](https://www.ruby-forum.com/u/laurent)\
**Post date:** [December 13, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/what-about-components/123025/1 "2007-12-13T14:30:50Z")

</div>

What is now privileged when we should implement reusable components :  
Use components capabilities in Rails (but i understood it’s not so  
popular) or write plugins?

Thanks

laurent

---

<div class="post-metadata">

**Author:** ![laurent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ce7236/32.png) [@laurent](https://www.ruby-forum.com/u/laurent)\
**Post date:** [December 13, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/what-about-components/123025/2 "2007-12-13T14:40:14Z")

</div>

On Dec 13, 2007 1:29 PM, Laurent [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> What is now privileged when we should implement reusable components :  
> Use components capabilities in Rails (but i understood it’s not so  
> popular) or write plugins?

For various (well discussed) reasons components are out. The Rails way  
of doing  
this generally involved combining partials and helpers. This doesn’t  
get you 100%  
of the way towards widget/component type behaviour though.

Merb has something similar though - Parts. However Merb and Rails are  
addressing  
different ecological niches.

---

<div class="post-metadata">

**Author:** ![laurent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ce7236/32.png) [@laurent](https://www.ruby-forum.com/u/laurent)\
**Post date:** [December 13, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/what-about-components/123025/3 "2007-12-13T15:07:20Z")

</div>

Ok, but finally i should understand we should write plugins …  
My question was effectively about some graphical components or  
Widgets, that could be reuse from one project to another.

Laurent
