Thanks a lot,

Following your advice I did:

  script/plugin install --force git://github.com/lackac/render_component.git
-r rails-edge

And effectively, Rails started correctly.

Then I had to change my call: previously I had:

<%= render :active_scaffold => "Demos", :constraints => {:demo =>
true, :fixed => true}, :label => "Demos" %>

and living that make a lot of garbage... So I change to:

<%= render_component :controller => "Demos", :action => "table" %>

I had to change to the "table" action to remove the layout... And like
that, it begin to work...

But, if I try to pass " :label => "Demos"  " it doesn't work: AS keep
the "config.label = "Demos default" " that is set in the controller...

Up to now I didn't test with the constraints...

But we are progressing...

Can anyone help me further...?

(for Benjamin: is this approach also not working with jruby...?)

Tanks in advance for tour answers,

Michel


On 18 mar, 09:03, Atastor <[email protected]> wrote:
> Well..for me its a bit obscure, too. But what *does* work (for me :))
> is the edge branch of lackac:
>
>   script/plugin install --force git://github.com/lackac/render_component.git
> -r rails-edge
>
> Regards
> Michael
>
> On 17 Mrz., 20:30, Michelschr <[email protected]> wrote:
>
> > Hello everyone,
>
> > The controllers managed with AS are wonderful and it's very nice when
> > we can embed them within a page of information. Following the AS wiki,
> > we was able to write in your controller something like:
>
> > render :active_scaffold => 'entries', :constraints => { :user_id =>
> > @user.id }
>
> > This mechanism was previously based on render_component which
> > disappear in Rails 2.3.2.
>
> > What should we do now to have the same behavior? What is the best way?
>
> > After reading the discussions in this forum and even testing different
> > solutions without success, it is still unclear for me... (different
> > render_component plugin branches... render_sibling...?)
>
> > I am sure that a lot of people will appreciate a clear explanation
> > about this topic.
>
> > Thanks in advance,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to