refactored source code, work on pixiv integration

This commit is contained in:
albert
2011-09-26 16:47:22 -04:00
parent 11b623c66b
commit 284141aace
19 changed files with 201 additions and 45 deletions

View File

@@ -4,6 +4,12 @@ class SourcesController < ApplicationController
def show
@source = Sources::Site.new(params[:url])
respond_with(@source)
@source.get
respond_with(@source) do |format|
format.json do
render :json => @source.to_json
end
end
end
end