rails way of selecting a partial with clean url?

One way I could think of is, you can render partials in the controller
itself.

def view
   if params[:switchOn] == 'maincategory'
        Bbq.find(:all)
        @switchOn = 'main'
         render :partial => 'viewmain'
   end
   if params[:switchOn] == 'subcategory'
        Bbq.find(:all, :condtion .. something)
        @switchOn = 'sub'
       render :partial => 'viewsub'
   end
end