Rendirng on the same view

I have one listusers.rhtml where i have to print all projects-wise list
and in the same page i have print in a different way or i have to print
the users-wise list when i am clicking any link provided in the same
page . so can u guide me for this
i am new to rails.