I understand rails very well and am not new to rails by any means. I’ve
read numerous websites on rails components, etc.
Based on my research and experience the only fallacy with components is
the performance issues. Am I wrong?
I found that rendering a component on my website slowed it down 5 times.
I took a look at my logs and noticed all of my before_filters running
twice. You get a method called component_request? in your controller.
You are also allowed to pass parameters to components. That being said,
I was able to cut out a lot of the before filters and just pass the
variables I needed using params. That cut the 5 down to 1.5. Now
performance is not an issue.
Am I missing something here?
Thanks for your help.