The render_component was extracted as a plugin, so the documentation here should explain what render_component is actually doing:
http://github.com/rails/render_component/tree/master I have provided an example here of a refactoring based on what you described below: http://gist.github.com/159227 HTH, Nicholas On Jul 31, 7:22 am, Michael Cugley <[email protected]> wrote: > New to Ruby, new to Rails. I've googled much on this topic, but I don't > think I have enough knowledge to form the correct queries. > > I've been given the task of resurrecting an old Rails app that's not > seen the light of day for two years. It seems to rely heavily on > render_component which I am given to understand by various error > messages is now deprecated, unfashionable, and unfit to be seen with on > social occasions. > > However, what I haven't found is much on what to do with > render_component code to make it more modern, apart from "Components are > a special-purpose approach that can often be replaced with better use of > partials and filters." Whatever they may be. > > Is there anywhere I can go to help me understand what the > render_component calls are doing in this particular instance, and how > best to refactor them? > > -- > Mike Cugley > [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

