Home > Ruby Rails > render_component plugin and rails 2.3

render_component plugin and rails 2.3

OK, since Rails 2.3 has depriciated the render_component method and advising to use a plugin for that I went and downloaded the plugin from

http://github.com/rails/render_component/tree/master but ended up being getting this error..

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method’: undefined method `set_session_options’ for class `ActionController::Base’ (NameError)

🙂

Ok… Now what… After doing some googling finally I found a fix to that…. Use this git

script/plugin install 
git://github.com/lackac/render_component.git -r rails-edge 

and that fixed my issue... hope yours as well :)

and thanks for this link —

http://www.42.mach7x.com/2009/06/24/undefined-method-render_component-with-activescaffold-and-rails-2-3-2/

Advertisements
  1. November 16, 2009 at 3:12 pm

    Thanks man, this solved it!

  2. Rodrigo
    May 4, 2010 at 3:13 pm

    Hello, I’m having the same problem, but running
    ruby script/plugin install git://github.com/lackac/render_component.git -r rails-edge
    creates an empty folder into my vendor/plugin folder and its not working at all.

    It asking me (AS) for a
    Template is missing

    Missing template videos/list.erb

    I dont want to embedd AS just display root table view.
    Can you help me ont his?
    Thanks!

    • sameeragayan
      May 22, 2010 at 6:14 am

      Hi Rodrigo,

      As I can see this is not a render_component issue but possibilities are

      1 – you might rendering an action called ‘list’ inside a controller called ‘videos’ . But in your app/views/videos you dont have a rhtml or erb file called ‘list’

      2 – you are calling an action called ‘list’ inside a controller called ‘videos’ . But in your app/views/videos you dont have a rhtml or erb file called ‘list’ before your render_component command execute

      please check and let me know

      extremely sorry for the late reply

  3. May 19, 2010 at 12:55 pm

    To sad lackac has deleted his repository, Anybody who knows of the difference from the official plugin. If so please submit a patch to this issue:

    http://github.com/rails/render_component/issues#issue/3

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: