Sergio the issue was introduced in this commit dd2f2c80e2f77d6f8d0748ac0a9ba774143a85a4
On Mon, Mar 1, 2010 at 10:38 AM, Antonio Bardazzi Multicore-Sistemi.com < [email protected]> wrote: > class RecordingEvent < ActiveRecord::Base > belongs_to :recording > end > class Recording < ActiveRecord::Base > has_many :recording_events > end > class RecordingEventsController < ApplicationController > protect_from_forgery :only => [] > active_scaffold :recording_event do |config| > config.label = "Eventi" > end > end > class RecordingsController < ApplicationController > active_scaffold :recordings do |config| > config.label = "Registrazioni" > config.nested.add_link("Eventi", [:recording_events]) > end > end > > And in top of config/routes.rb: > map.resources :recording, :active_scaffold => true > map.resources :recording_event, :active_scaffold => true > > On 1 Mar, 16:39, "Sergio Cambra .:: entreCables S.L. ::." > <[email protected]> wrote: > > On Lunes, 1 de Marzo de 2010 15:11:31 Antonio Bardazzi > Multicore-Sistemi.com > > escribió: > > > > > Hello to group and specially to Sergio Cambra for his long and > > > fantastic work on AS. > > > > > I'm using AS since version 1.1, after 1 year break I'm returning on AS > > > for rails 2.3: > > > > > ./script/plugin install git:// > github.com/activescaffold/active_scaffold.git > > > ./script/plugin install git:// > github.com/ewildgoose/render_component.git > > > -r rails-2.3 > > > > > I have a modelA has_many modelB, each controller works fine but the > > > nested action from modelA > > > display verbatim javascript and the content element is not present in > > > the HTML > > > (as_75d2416e774ff73f66e3b46a67137ff5-content) > > > > Please post actual code of your models (not modelA and modelB), really > only > > needed is association definitions from both models. It would be useful > the URL > > which AS outputs for the nested link, both for autolinking in column and > > nested.add_link. > > > > > > > > > > > > > There is a screenshot: > > >http://imagebin.ca/view/KhESxOmQ.html > > > > > Antonio Bardazzi > > > > > On 1 Mar, 13:35, "Sergio Cambra .:: entreCables S.L. ::." > > > > > <[email protected]> wrote: > > > > On Lunes, 1 de Marzo de 2010 12:20:19 umuro escribió: > > > > > rails 2.3.5 and latest active_scaffold and render_component for > rails > > > > > 2.3 on github... > > > > > > > If a class has has_many then active_scaffold used to generated a > > > > > nested scaffold for that association automatically. It does not > > > > > anymore. Instead of nested scaffolds, I am getting update links. > > > > > > > To work around I tried to force a nested scaffold myself. > > > > > .e.g > > > > > > > active_scaffold :project do |config| > > > > > config.nested.add_link("Subprojects", [:subprojects]) > > > > > end > > > > > > > And this results in a problem screen, too > > > > > > > Has anybody have a success story with associated model? > > > > > > It's working here, can you post your associations definitions? > > > > > > > ------------------------------------------------- > > > > > can't convert Class into String > > > > > > > Extracted source (around line #28): > > > > > > > 25: end > > > > > 26: > > > > > 27: # generate the customized label > > > > > 28: @label = as_(:nested_for_model, :nested_model => > > > > > active_scaffold_config_for(association.klass).list.label, > :parent_model > > > > > => format_value(@record.to_label)) > > > > > 29: > > > > > 30: begin > > > > > 31: controller = > > > > > active_scaffold_controller_for(association.klass) > > > > > > > RAILS_ROOT: /home/umur/nondoc/workspaces/conceptspace/plan > > > > > > -- > > > > Sergio Cambra .:: entreCables S.L. ::. > > > > Mariana Pineda 23, 50.018 Zaragoza > > > > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > > > -- > > Sergio Cambra .:: entreCables S.L. ::. > > Mariana Pineda 23, 50.018 Zaragoza > > T) 902 021 404 F) 976 52 98 07 E) [email protected] > > -- > 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]<activescaffold%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/activescaffold?hl=en. > > -- 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.
