Changeset 1325

Show
Ignore:
Timestamp:
08/07/08 20:30:32 (5 months ago)
Author:
alban
Message:

Support du format m3u pour PublicController#tags?. Refs #17

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/public_controller.rb

    r1323 r1325  
    5454    @episodes = @show.episodes.find_tagged_with @search 
    5555 
    56     render_template @show, :search, @search 
     56    respond_to do |format| 
     57      format.html { 
     58        render_template @show, :search, @search 
     59      } 
     60      format.m3u { 
     61        @principal_contents = @episodes.collect { |e| e.contents.principal }.flatten 
     62        render :layout => false 
     63        # render tags.m3u.erb 
     64      } 
     65    end 
    5766  end 
    5867