I want my application to display different data on the main page depending on whether the user has been registered or not.
def index
if current_user
else
end
end
I can achieve this using render_component. However, it has been deprecated for some time. Although I can still use it as a plugin, I am wondering if anyone has a better approach. Just keep in mind that rendering a different kind of controller directly is not an option.
Thank.
source
share