What I like about Rails3

This is NOT a post about differences between Rails 2.x and Rails 3 but these are some musings about what I love in Rails. A lot of goodies come ‘in the box’ (I hate saying out-of-the-box) with Rails3 and some of them have been there since early version of Rails but somehow less frequently usedContinue reading “What I like about Rails3”

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” => “fuonrails”, :href => “http://twitter.com/share&#8221;} Tweet %script{:src => “http://platform.twitter.com/widgets.js&#8221;, :type => “text/javascript”} .fshare.left{:style => ‘padding-left:Continue reading “Twitter share and facebook like button for haml-rails, html/erb”