Module: FbauthHelper

Defined in:
app/helpers/fbauth_helper.rb

Instance Method Summary collapse

Instance Method Details

#fbauthObject



14
15
16
# File 'app/helpers/fbauth_helper.rb', line 14

def fbauth
  @facebook_auth
end

#fbauth_init_javascript(options = {}) ⇒ Object



10
11
12
# File 'app/helpers/fbauth_helper.rb', line 10

def fbauth_init_javascript options={}
  render :partial => '/fbauth/init.html.haml', :locals => options
end

#fbauth_login_javascript(options = {}) ⇒ Object



2
3
4
5
6
7
8
# File 'app/helpers/fbauth_helper.rb', line 2

def  options={}
   = options[:login] || 'login'
  add_el = options[:add] || 'add'
  ready_el = options[:ready] || 'ready'

  render :partial => '/fbauth/login.html.haml', :locals => { :login_el => , :add_el => add_el, :ready_el => ready_el }
end