Module: Nivo::Helper

Defined in:
lib/nivo/helper.rb

Instance Method Summary collapse

Instance Method Details

#show_slider?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
# File 'lib/nivo/helper.rb', line 7

def show_slider?
  if @show_slider
    @slides = Nivo::Slide.rotate
    render "nivo/slideshow", :slides => @slides
  end
end

#slider(show_slider = true) ⇒ Object



3
4
5
# File 'lib/nivo/helper.rb', line 3

def slider(show_slider = true)
  @show_slider = show_slider
end