i did the :nested issue
look ;)
in application controller :
def is_nested?
if params[:nested]==nil or params[:nested]==false
debugger
$nested = false
else
debugger
$nested = true
end
end
in controller :
before_filter :is_nested?
and
active_scaffold :estoques do |c|
if $nested == true
c.actions = [:show,:list,:nested] and $nested=false
else
c.actions = [:create,:delete,:update,:show,:list,:nested]
end
end
the only problem is that the requests sometimes uses a type of cache
and uses the
last config for the model
we need to discover a way to update the configs in every request...
On 7 jan, 02:59, chouti <[email protected]> wrote:
> Thanks vinicius,
> yes, I want to customize the view of nested subform.
> That's a good news to know you are working on it.
> Thanks again. :-)
>
> On Jan 7, 12:04 pm, Vinicius <[email protected]> wrote:
>
> > u means u need a custom display settings to nested for example?
> > if that's is te question i'm working on it and i will post son as i
> > has discovered
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---