>Edit nginx configuration and look for html block. Inside html block add following line. http { include conf/mime.types; default_type application/octet-stream; client_max_body_size 10m; ....} In above configuration "application/octet-stream" supports any kind of file upload.
Author: sandipransing
How Twitter Share & Facebook Like Buttons Work 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" class="twitter-share-button" data-count="horizontal" data-via="funonrails">Tweet</a>http://platform.twitter.com/widgets.js </div> <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"} Tweet %script{:src => "http://platform.twitter.com/widgets.js", :type => "text/javascript"} .fshare.left{:style => 'padding-left: 0px; … Continue reading How Twitter Share & Facebook Like Buttons Work For HAML-Rails & HTML/erb
number to indian currency helper for rails with WebRupee
>rails has built in number_to_currency helper which takes options like unit, delimeter, seperator which displays foreign currency correctly but somehow it is not best suited for indian currency.Below is how we managed 2 years ago to display indian currency formatted properly with comma as seperator. personally i think it could be more better than what … Continue reading number to indian currency helper for rails with WebRupee