```
- upcoming = ""
- past = ""
- @saves.each do |save|
  - if save.con1
    - upcoming += render "save_individual"
  - else if save.con2
    - past += render "save_individual"

  - if params[:show_saved]
    .tab-content
      #upcoming.tab-pane.fade.in.active
        = upcoming
      #past.tab-pane.fade
        = past
  - else
    = render "save_individual"

```

I am trying to reuse an existing view for two pages, one will show content without tabs and other with past/upcoming tabs with respective filtered content, Is what I am trying is correct, I see plain html output rendered though, is there any legitimate ways to do that?