Sha256: a7a5f818689a2e71a1f1e4ec936082d75532ea79993fb6beb959a18bf71b99c3
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
class UsersController < ApplicationController respond_to :json def create @user = User.create_or_update_by_access_token user_params[:access_token] if @user.save session[:fbid] = @user.fbid render json: {user: @user, redirect: root_url}, status: :ok else render json: {}, status: :unprocessable_entity end end def user_params params.require(:user).permit(:access_token) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wired-0.3.0 | templates/facebook/users_controller.rb |
wired-0.2.0 | templates/facebook/users_controller.rb |