Module: Omnisocial::AuthHelper
- Defined in:
- app/helpers/omnisocial/auth_helper.rb
Instance Method Summary collapse
- #auth_request_path(options = {}) ⇒ Object
- #big_facebook_login_button ⇒ Object
- #big_twitter_login_button ⇒ Object
- #facebook_login_button ⇒ Object
- #twitter_login_button ⇒ Object
Instance Method Details
#auth_request_path(options = {}) ⇒ Object
3 4 5 |
# File 'app/helpers/omnisocial/auth_helper.rb', line 3 def auth_request_path( = {}) "/auth/#{[:service]}" end |
#big_facebook_login_button ⇒ Object
11 12 13 |
# File 'app/helpers/omnisocial/auth_helper.rb', line 11 def content_tag(:a, content_tag(:span, 'Sign in with Facebook'), :class => 'omnisocial-button facebook', :href => auth_request_path(:service => 'facebook')) end |
#big_twitter_login_button ⇒ Object
7 8 9 |
# File 'app/helpers/omnisocial/auth_helper.rb', line 7 def content_tag(:a, content_tag(:span, 'Sign in with Twitter'), :class => 'omnisocial-button twitter', :href => auth_request_path(:service => 'twitter')) end |
#facebook_login_button ⇒ Object
19 20 21 |
# File 'app/helpers/omnisocial/auth_helper.rb', line 19 def content_tag(:a, content_tag(:img, :src => '/images/omnisocial/signin_facebook.png', :alt => 'Sign in with Facebook'), :href => auth_request_path(:service => 'facebook')) end |
#twitter_login_button ⇒ Object
15 16 17 |
# File 'app/helpers/omnisocial/auth_helper.rb', line 15 def content_tag(:a, content_tag(:img, :src => '/images/omnisocial/signin_twitter.png', :alt => 'Sign in with Twitter'), :href => auth_request_path(:service => 'twitter')) end |