Class: Banners::JavascriptController

Inherits:
Wheelhouse::BaseController
  • Object
show all
Defined in:
app/controllers/banners/javascript_controller.rb

Instance Method Summary collapse

Instance Method Details

#allObject



5
6
7
8
# File 'app/controllers/banners/javascript_controller.rb', line 5

def all
  @banners = Banners::Banner.decorate
  render "banners"
end

#taggedObject



10
11
12
13
# File 'app/controllers/banners/javascript_controller.rb', line 10

def tagged
  @banners = Banners::Banner.tagged_with(params[:tag]).decorate
  render "banners"
end