# Scaffolding plugins that support relationships. . .?

**URL:** <https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402>\
**Category:** Rails\
**Created:** [February 22, 2007, 1:01am UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402 "2007-02-22T01:01:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [February 22, 2007, 1:01am UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402/1 "2007-02-22T01:01:09Z")

</div>

Hi All,

I’m looking for a quality scaffolding plugin. So far I’ve discovered  
DryScaffolding and Streamlined. DryScaffolding doesn’t truly support  
Rails 1.2.2 so I dropped that. Streamlined works, but is full of  
quirks (e.g. many-to-many relationships not cascade updating  
correctly, etc). Can anyone suggest a quality scaffolding plugin/  
generator/framework that supports relationships?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [February 22, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402/2 "2007-02-22T19:20:29Z")

</div>

On 2/21/07, gberz3 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m looking for a quality scaffolding plugin. So far I’ve discovered  
> DryScaffolding and Streamlined. DryScaffolding doesn’t truly support  
> Rails 1.2.2 so I dropped that. Streamlined works, but is full of  
> quirks (e.g. many-to-many relationships not cascade updating  
> correctly, etc). Can anyone suggest a quality scaffolding plugin/  
> generator/framework that supports relationships?

You can try the Scaffolding Extensions plugin [1], which supports  
relationships. Not sure what you mean about many-to-many  
relationships not cascade updating correctly, though.

[1]  
[http://wiki.rubyonrails.com/rails/pages/Scaffolding+Extensions+Plugin](http://wiki.rubyonrails.com/rails/pages/Scaffolding+Extensions+Plugin)

---

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [February 23, 2007, 12:21am UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402/3 "2007-02-23T00:21:09Z")

</div>

Jeremy,

Perhaps “cascade” is the wrong word. Basically, say I have two  
entities in a habtm with a join table: Orders, Contacts, and table  
contacts\_orders. When updating one from the other, updates don’t  
always occur. Perhaps that’s simply a timing issue.

The biggest issue, though, is that, for whatever reason, “streamlined”  
treats habtm relationships as though they’re unique. For instance,  
when I do successfully add (via checkbox) a Contact to Order #1, he  
can’t be used for Order #2. Not that it should affect it, but I’ve  
tried with and without explicit foreign keys, with and without  
indexes. I have _no_ idea why it is behaving that way.

Just out of curiosity, which of the plugins would you say is more full-  
featured (yours or ‘streamlined’)? I’m on a tight deadline to get a  
demo running and I’m needing the most realiable, quick-fastest (as far  
as implementing) plugin out there.

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [February 23, 2007, 3:58am UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402/4 "2007-02-23T03:58:28Z")

</div>

This may be helpful:  
[http://agilewebdevelopment.com/plugins/scaffold](http://agilewebdevelopment.com/plugins/scaffold)

–  
Building an e-commerce site with Rails?  
[http://www.agilewebdevelopment.com/rails-ecommerce](http://www.agilewebdevelopment.com/rails-ecommerce)

Meet up at RailsConf:  
[http://railsconf2007.conferencemeetup.com/](http://railsconf2007.conferencemeetup.com/)

---

<div class="post-metadata">

**Author:** ![gberz3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f9ae1b/32.png) [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Post date:** [February 23, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/scaffolding-plugins-that-support-relationships/86402/5 "2007-02-23T18:32:25Z")

</div>

On 2/22/07, gberz3 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Perhaps “cascade” is the wrong word. Basically, say I have two  
> entities in a habtm with a join table: Orders, Contacts, and table  
> contacts\_orders. When updating one from the other, updates don’t  
> always occur. Perhaps that’s simply a timing issue.

I’m not sure how the other plugins deal with it, but with Scaffolding  
Extensions, you don’t edit one from the other. Each model object can  
be edited separately and you can add and remove associations to other  
model objects, but you directly edit one model object from another.

> The biggest issue, though, is that, for whatever reason, “streamlined”  
> treats habtm relationships as though they’re unique. For instance,  
> when I do successfully add (via checkbox) a Contact to Order #1, he  
> can’t be used for Order #2. Not that it should affect it, but I’ve  
> tried with and without explicit foreign keys, with and without  
> indexes. I have _no_ idea why it is behaving that way.

I haven’t used Streamlined, so I’m not sure why it would behave that  
way (unless contact belongs\_to order). With Scaffolding Extensions,  
each contact can have multiple orders, and each order can have  
multiple contacts, so you wouldn’t have a problem with multiple orders  
each associated with the same contact.

> Just out of curiosity, which of the plugins would you say is more full-  
> featured (yours or ‘streamlined’)? I’m on a tight deadline to get a  
> demo running and I’m needing the most realiable, quick-fastest (as far  
> as implementing) plugin out there.

I haven’t used Streamlined, so I can’t say. From what I know about  
it, it’s a combination plugin/generator, while Scaffolding Extensions  
is just a plugin. If Scaffolding Extensions meets your customization  
needs, it’s probably faster, but if you need to customize each form  
beyond the options the plugin gives you, you may be better off with  
something else.
