Now, that I'm trying to move to AS plugin I'm wondering if the
location change for scaffold_columns is a good thing.
>From a reuse perspective, if the same model is going to appear in
multiple contexts, from multiple controllers, (think included list
views here )
wouldn't it be better to have the scaffold_columns stay with the
model? Otherwise, it seems we have to replicate the scaffold_columns
definition in > 1 controller?
I was forgetting that the nested/embedded render tags refers to the
controller, so putting the scaffold with controller seems fine for
reuse.
My apologies.
<p/>
<%= render_component :controller => '/view_todos', :action =>
'component', :params => {:user_userid => @user.userid} %>
<p/>
<p/>
<%= render_component :controller => '/view_watches', :action =>
'component', :params => {:user_userid => @user.userid} %>
<p/>