Class: Pageflow::Chart::ScrapedSitesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Pageflow::Chart::ScrapedSitesController
- Defined in:
- app/controllers/pageflow/chart/scraped_sites_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#show ⇒ Object
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 |