# ActiveScaffold and partials

**URL:** <https://www.ruby-forum.com/t/activescaffold-and-partials/195414>\
**Category:** Rails\
**Created:** [September 22, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414 "2010-09-22T23:43:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 22, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/1 "2010-09-22T23:43:38Z")

</div>

I was thinking of doing partials as I did in the simple Rails  
application I worked on today.

But, since I’m using ActiveScaffold, I didn’t find any \*.html.erb in the  
views folder of the Rails application that I need to make my partials!

How can I work with partials in ActiveScaffold?

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 3:24am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/2 "2010-09-23T03:24:07Z")

</div>

I wrote a long answer about hour ago but i have a new phone and i  
think i didnt send it .

Activescaffold is a rails app in it self it only uses your model, if  
you go to the vendor/plugin folder you will see it sitting there it  
has its own controllers and views , thats why your app is empty and  
thats why i dont recommend it because is going to confuse you.

Active scaffold is used only in the admin section of the app.

2010/9/22, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

–  
Enviado desde mi dispositivo móvil

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 5:02am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/3 "2010-09-23T05:02:32Z")

</div>

Yes @radhames. I think especially as for me kind of still new RoR, I  
should go with learning and using RoR as is.

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/4 "2010-09-23T17:21:47Z")

</div>

radhames brito wrote:

> Watch the railscast about inherited\_resources at [railscasts.com](http://railscasts.com)
> 
> 2010/9/22, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > To post to this group, send email to removed\_email\_address@domain.invalid.  
> > To unsubscribe from this group, send email to  
> > removed\_email\_address@domain.invalid.  
> > For more options, visit this group at  
> > [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
> 
> –  
> Enviado desde mi dispositivo mï¿½vil

Thanks @radhames.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 11:58am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/5 "2010-09-23T11:58:35Z")

</div>

Watch the railscast about inherited\_resources at [railscasts.com](http://railscasts.com)

2010/9/22, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid.  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Enviado desde mi dispositivo móvil

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/6 "2010-09-23T20:10:38Z")

</div>

I think the solution to that was using “references” as shown in the  
example below:

> **[How-To Setup ActiveScaffold with Rails 3.0](https://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/)**
>
> Rails 3.0 RC2 was recently released and it seems that we are really close to the official launch of Rails 3.0 I ve got great news for those of you who have already been using the ActiveScaffold Plu…

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/7 "2010-09-23T20:30:20Z")

</div>

SW Engineer wrote:

> I was thinking of doing partials as I did in the simple Rails  
> application I worked on today.
> 
> But, since I’m using ActiveScaffold, I didn’t find any \*.html.erb in the  
> views folder of the Rails application that I need to make my partials!

Right. ActiveScaffold is a plugin and has its own views folder (which  
you normally shouldn’t mess with).

> How can I work with partials in ActiveScaffold?

ActiveScaffold is essentially a simple database interface. Whatever  
you’re doing with partials should not normally involve ActiveScaffold.

What are you trying to do here?

> Thanks.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 23, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/8 "2010-09-23T22:40:53Z")

</div>

Thanks @Marnen.

I think my issue was solved by the simple example here:

> **[How-To Setup ActiveScaffold with Rails 3.0](https://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/)**
>
> Rails 3.0 RC2 was recently released and it seems that we are really close to the official launch of Rails 3.0 I ve got great news for those of you who have already been using the ActiveScaffold Plu…

What I was trying to do with partials is that I have an “items” and  
“itemdetails” tables, and “items” “has\_many” “itemdetails”, and wanted  
the “itemdetails” to be AT THE SAME page of the “item”, since for each  
item, there are different “itemdetails”.

And, my issue was solved when I inserted a column in “itemdetails”,  
namley, “item” and gave it the type “references” as follows:

item:references

I think it acts like a foreign key, and is the same as saying:

item\_id:integer

in ordinary Rails, doesn’t it?

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [September 24, 2010, 9:39am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414/9 "2010-09-24T09:39:30Z")

</div>

Reagarding “references”, I thought is was related to ActiveScaffold, but  
from here:

> **[How-To Setup ActiveScaffold with Rails 3.0](https://vhochstein.wordpress.com/2010/08/28/setup-activescaffold-rails-3/)**
>
> Rails 3.0 RC2 was recently released and it seems that we are really close to the official launch of Rails 3.0 I ve got great news for those of you who have already been using the ActiveScaffold Plu…

I was told it is pure Rails.

Information on “references” can be found here:

> **[Active Record Migrations — Ruby on Rails Guides](https://edgeguides.rubyonrails.org/active_record_migrations.html)**
>
> Active Record MigrationsMigrations are a feature of Active Record that allows you to evolve your database schema over time. Rather than write schema modifications in pure SQL, migrations allow you to use a Ruby DSL to describe changes to your...

Thanks.
