Hi,

seems you have nt installed render_component plugin:
script/plugin install git://github.com/ewildgoose/render_component.git
-r rails-2.3

--
Volker


On Jun 17, 2:04 am, chdem <[email protected]> wrote:
> Hi !
>
> I'm trying to use ActiveRecord with a HABTM configuration and after
> have make some modifications in my controllers, I think that I can
> browse some of my tables with HM or BT relations ! BUT, I actually
> encountered an "undefined method `render_component' for
> #<ActionView::Base:0xb5473118>" error when I clic on a link to one of
> the HABTM table.
> Please see my models :
>
> class Dataset < ActiveRecord::Base
>   has_many :conditions
>
>   def to_label
>     "Dataset: #{name}"
>   end
> end
>
> class Condition < ActiveRecord::Base
>   belongs_to :dataset
>   has_and_belongs_to_many :quant_ratios
>   has_and_belongs_to_many :xml_files
>
>   def to_label
>     "#{id}"
>   end
> end
>
> class XmlFile < ActiveRecord::Base
>   has_and_belongs_to_many :conditions
> end
>
> class QuantRatio < ActiveRecord::Base
>   has_and_belongs_to_many :conditions
> end
>
> Of course, I have 2 some join tables.
> Here, the table printed in my browser fo the condition data :
>
> Conditions
> Dataset         Description     Name    Nb common files         Quant ratios  
>   Xml files
> TEST                             blabla         -                             
>   id=1
>                 id=3            Edit    Delete  Show
> 1 Found
>
> The error is throw when I clic on Quant Ratios link or Xml files
> link....
> Have you any idea ?
>
> Thanks a lot !
>
> CD

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