I have model with self referrental relation: Program.
so it has subprograms and for AS it is:
config.nested.add_link('Subprograms', [:subprograms])

and for each program I have this set of a link:
config.columns[:name].set_link :name, :action => 'list', :popup => true

conditions_for_collection method captures the id from this request and just
finds this record so it is only one in list.

The problem is: when I follow the link from normal list - all is ok - style
preserved, but when I follow nested link first and follow by :name link from
any of nesdet records I have no any style just ugly html itself.
And source code of the page starts with:
<div id="as_ece3727dc1ddffdcc1445e58d5c47a4d-active-scaffold"
class="active-scaffold
active-scaffold-as_ece3727dc1ddffdcc1445e58d5c47a4d fcps-view default-theme
">
But in normal list all is normal:
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head> <meta
http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Автоматизированная
система обработки баз данных долгосрочных целевых программ
Aries</title>  <script
src="/javascripts/prototype.js?1280034133"
type="text/javascript"></script> <script
src="/javascripts/effects.js?1280034133"
type="text/javascript"></script> <script
src="/javascripts/dragdrop.js?1280034133"
type="text/javascript"></script> <script
src="/javascripts/controls.js?1280034133"
type="text/javascript"></script> <script
src="/javascripts/application.js?1261277058" type="text/javascript">
</script>  <script src="
/javascripts/active_scaffold/default/form_enhancements.js?1280220729" type="
text/javascript"></script> <script src="
/javascripts/active_scaffold/default/active_scaffold.js?1280220729" type="
text/javascript"></script> <script src="
/javascripts/active_scaffold/default/dhtml_history.js?1280220729" type="
text/javascript"></script> <script src="
/javascripts/active_scaffold/default/rico_corner.js?1280220729" type="
text/javascript"></script> <link href="
/stylesheets/active_scaffold/default/stylesheet.css?1280220729" media="
screen" rel="stylesheet" type="text/css" /> <!--[if IE]><link
href="/stylesheets/active_scaffold/default/stylesheet-ie.css?1280220729"
media="screen" rel="stylesheet" type= and so on

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