Ok, I found the solution :

script/plugin install git://github.com/ewildgoose/render_component.git
-r rails-2.3



Thank you everybody for your help !



On Jun 17, 9:51 am, Christophe Demay <[email protected]>
wrote:
> Hi,
>
> thank you for your help.
>
> I install the plugin but, when I launch Mongrel, I have an "*undefined
> method `set_session_options'  for class `ActionController::Base' (NameError)
> *". Please, see my stackTrace :
>
> => Booting Mongrel
>
> => Rails 2.3.8 application starting onhttp://0.0.0.0:3000
>
> /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/modu 
> le/aliasing.rb:33:in
>
> > `alias_method': undefined method `set_session_options' for class
> > `ActionController::Base' (NameError)
>
>  from
>
> > /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/modu 
> > le/aliasing.rb:33:in
> > `alias_method_chain'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/lib/components 
> > .rb:13:in
> > `included'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/lib/components 
> > .rb:3:in
> > `class_eval'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/lib/components 
> > .rb:3:in
> > `included'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/init.rb:2:in
> > `include'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/init.rb:2:in
> > `send'
>
>  from
>
> > /opt/protein_database_digger/vendor/plugins/render_component/init.rb:2:in
> > `evaluate_init_rb'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin.rb:158:in
>
> > `evaluate_init_rb'
>
>  from
>
> > /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/kern 
> > el/reporting.rb:11:in
> > `silence_warnings'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin.rb:154:in
>
> > `evaluate_init_rb'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin.rb:48:in `load'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin/loader.rb:38:in
>
> > `load_plugins'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin/loader.rb:37:in
>
> > `each'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/rails/plugin/loader.rb:37:in
>
> > `load_plugins'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:369:in
>
> > `load_plugins'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:165:in `process'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
>
>  from /opt/protein_database_digger/config/environment.rb:14
>
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
>
> > `gem_original_require'
>
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>
>  from
>
> > /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies. 
> > rb:156:in
> > `require'
>
>  from
>
> > /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies. 
> > rb:521:in
> > `new_constants_in'
>
>  from
>
> > /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies. 
> > rb:156:in
> > `require'
>
>  from /var/lib/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:84
>
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
>
> > `gem_original_require'
>
>  from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>
>  from script/server:3
>
> Some forums indicate to 
> installhttp://github.com/lackac/render_componentplugin. This one is supposed
> to manage this kind of error, but the plugin
> doest not exist anymore.
>
> Other website (http://dothingssimple.wordpress.com/2009/08/07/hello-world/) 
> say
> that I have to install the plugin with "*-r rails-edge option*" (I have no
> idea of what is the goal of this, if you have any idea, I will learn another
> new thing, little newbie that I am, lol !) BUT this option cause an error
> during plugin installation :
>
>  fatal: Couldn't find remote ref rails-edge
>
> So, I'm blocked ! If you have any idea, that will be great !
>
> CD
>
> On Thu, Jun 17, 2010 at 02:06, [email protected] <
>
>
>
> [email protected]> wrote:
> > 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]<activescaffold%2bunsubscr...@go 
> > oglegroups.com>
> > .
> > 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.

Reply via email to