Class: Pageflow::Chart::ScrapedSitesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pageflow/chart/scraped_sites_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'app/controllers/pageflow/chart/scraped_sites_controller.rb', line 6

def create
  scraped_site = ScrapedSite.create!(scraped_site_params)
  scraped_site.process!

  respond_with(scraped_site)
end

#showObject



13
14
15
16
# File 'app/controllers/pageflow/chart/scraped_sites_controller.rb', line 13

def show
  scraped_site = ScrapedSite.find(params[:id])
  respond_with(scraped_site)
end