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