Tag Archives: facebook

Testing social networks using capybara, cucumber-rails, selenium

Integration of social networks is very common in every application. We have many gems are available for doing integration. But testing this social integration is complicated task. Using capybara with cucumber we can easily test this similar to the normal … Continue reading

Posted in Ruby on Rails, Tutorials | Tagged , , , | 1 Comment

Twitter share and facebook like button for haml-rails, html/erb

>Twitter share and facebook like button for html/erb<div class=’spread’>  <div class=’twshare left’>   <a href=”http://twitter.com/share&#8221; class=”twitter-share-button” data-count=”horizontal” data-via=”funonrails”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script&gt;  </div>  <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like href=”” layout=”button_count” show_faces=”false” width=”450″ font=””></fb:like></div>Twitter share and facebook like button for haml.spread .twshare.left %a.twitter-share-button.left{“data-count” => “horizontal”, “data-via” … Continue reading

Posted in Ruby on Rails | Tagged , , | 4 Comments

Multiple Applications with Devise, Omniauth and Single Sign On

The best way to scale an application is to split the application business logic into different inter-communicable components. However, authenticating, authorizing and security raise concerns. OAuth comes to the rescue – and like a knight in shining armour – omniauth … Continue reading

Posted in Ruby on Rails | Tagged , , , , , | 126 Comments