I would suggest pulling down the latest version of ActiveScaffoldDemo and look 
at the controllers and what not there. 

You want to use the master branch and you will have to update all the 
gitmodules.  Once you do db:create db:migrate and try to start the server. 

There might be a readme file in the application directory. If you have any 
problems with it you can email this list or just email me personally.  

The demo application is basically a main layout that has two select dropdowns 
at the top, if you pick something from the drop down it changes the controller 
that is rendered. It is a really good example of what you are trying to do.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: "[email protected]" <[email protected]>

Date: Mon, 22 Jun 2009 14:44:36 
To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
Subject: Layout/Ajax and AS



Hi

I would like that the AS list be displayed after the layout...

Like :

# CONTROLLER
class Admin::Users < ApplicationController

layout :admin

 activescaffold :users do |config|
....
end

# LAYOUT/ADMIN
<html><head>.....
<body>....
<%= yield %>..
<script>
Event.observe(window,'loaded', function() {
<%= remote_function :url => { :action => :display_AS } %>
}
</script>

How must be my remote function ? Should I use a partial like :
_display_AS.html.erb
<%= render super %>
or
<%= render :activescaffold => 'admin/users' %>

...

Thanks a lot for your help


--~--~---------~--~----~------------~-------~--~----~
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