Hi Jim
I'm not sure if I get what you ask for.
URL to edit form it's /controller/id/edit, it will open edit form in page. If
you ask for an url listing one row and open edit form, there is no one, but
there is url to listing one row (/controller/id/list), you can override
list.html.erb and add JS to open edit link, e.g.:
<%= render :super %>
<% if params[:id] %>
<script type="text/javascript">
$(document).ready(function() {
$('a.edit.as_action').click();
});
</script>
To embed activescaffold in another page you can use render active_scaffold:
controller_name, it will use JS to load controller index, you may load a
different action, although it will render layout, because activescaffold has
code to disable layout in index action only when loading embedded.
You can add to your view:
<%= render active_scaffold: controller_name, params: {action: 'edit', id: id}
%>
And add this method to your controller:
def edit_respond_to_html
if loading_embedded?
render :action => 'update', :layout => false
else
super
end
end