Sha256: 2d1aeb8048af3a61a9d718c0c9f249981a8a03ab41ee6b88f8ccbfa5b0c5775c

Contents?: true

Size: 536 Bytes

Versions: 15

Compression:

Stored size: 536 Bytes

Contents

class SlideShowsController < ApplicationController
  # GET /slide_shows
  # GET /slide_shows.xml
  def index
    @slide_shows = SlideShow.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @slide_shows }
      format.json  { render :json => @slide_shows }
    end
  end


  def show
    @slide_show = SlideShow.find_by_permalink(params[:id])
  #raise
    @slides = @slide_show.slides.published
    respond_to do |format|
      format.json  { render :json => @slides }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
beef-slides-0.2.0 app/controllers/slide_shows_controller.rb
beef-slides-0.2.2 app/controllers/slide_shows_controller.rb
beef-slides-0.2.3 app/controllers/slide_shows_controller.rb
beef-slides-0.2.4 app/controllers/slide_shows_controller.rb
beef-slides-1.0.0 app/controllers/slide_shows_controller.rb
beef-slides-1.1.0 app/controllers/slide_shows_controller.rb
beef-slides-1.1.1 app/controllers/slide_shows_controller.rb
beef-slides-1.1.2 app/controllers/slide_shows_controller.rb
beef-slides-1.1.4 app/controllers/slide_shows_controller.rb
beef-slides-1.1.5 app/controllers/slide_shows_controller.rb
beef-slides-1.1.11 app/controllers/slide_shows_controller.rb
beef-slides-1.1.10 app/controllers/slide_shows_controller.rb
beef-slides-1.1.9 app/controllers/slide_shows_controller.rb
beef-slides-1.1.8 app/controllers/slide_shows_controller.rb
beef-slides-1.1.7 app/controllers/slide_shows_controller.rb