app/controllers/fetch_details_controller.rb
# POST / Fetches Data frpm Social Plugins
POST / Fetches Data frpm Social Plugins
POST / Fetches Data frpm Social Plugins
def fetch_user_data
    @username = params[:username]
    @configured_sources = params[:source_ids] || []
    @result_set = Hash.new
    @configured_sources.each do |source|
      feed_result = fetch_feed(source,@username)
      @result_set[source] = feed_result
    end
  end
def fetch_user_data @username = params [ :username ] @configured_sources = params [ :source_ids ] || [ ] @result_set = Hash . new @configured_sources . each do | source | feed_result = fetch_feed ( source , @username ) @result_set [ source ] = feed_result end end
POST / Fetches Data frpm Social Plugins
POST / Fetches Data frpm Social Plugins