# Render\_component rails 2.3

**URL:** <https://www.ruby-forum.com/t/render-component-rails-2-3/179500>\
**Category:** Rails\
**Created:** [November 26, 2009, 11:23am UTC](https://www.ruby-forum.com/t/render-component-rails-2-3/179500 "2009-11-26T11:23:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Post date:** [November 26, 2009, 11:23am UTC](https://www.ruby-forum.com/t/render-component-rails-2-3/179500/1 "2009-11-26T11:23:35Z")

</div>

in routes.rb i have put:

map.connect ‘/:alias’, :controller =\> ‘cores’ ,:action=\>“view”  
this alias is connect with 3 models: event place and artist in my cores  
controller i used render\_component for rendering the action relative to  
the model.

if(core = Core.find(:first, :conditions =\> [“alias = ?”,  
params[:alias]]))  
type = core.class.to\_s.downcase  
render\_component(:controller =\> type,  
:action =\> “view”,  
:id =\> core.id.to\_s,  
:params =\> params)  
end  
In rails 2.3 render\_component is deprecated. But what’s the solution for  
do this?

I’ve seen that there is a plugin for reuse the render\_component but i  
want know the other solution.

thanks.
