Sha256: 4a5c6d4aae483aeeedbd2091478474f3b6d8057fc4795333b3fbd51d60998631

Contents?: true

Size: 657 Bytes

Versions: 2

Compression:

Stored size: 657 Bytes

Contents

class RemoteusersController < ApplicationController
  before_filter :authenticate_user!
  
  def index
    if params[:slug].present?
      wfslug = params[:slug].split('@')
      a = RemoteUser.create!(:name => wfslug[0], 
                             :webfinger_slug => params[:slug],
                             :origin_node_url => wfslug[1],
                             :hub_url => Social2social.hub)
      home_feed = 'http://'+a.origin_node_url+'/api/user/'+a.name+'/home/'                       
      puts home_feed                       
      #TO-DO: I'M WORKING HERE
    end
    
    respond_to do |format|
      format.html
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social2social-0.0.2 app/controllers/remoteusers_controller.rb
social2social-0.0.1 app/controllers/remoteusers_controller.rb