About Us
Josh Software
Our passion is Ruby On Rails! We are an Indian company who believes that programming is an art.Our portfolio! -- Contact Us
Categories
- Case Studies (1)
- CMS (9)
- Radiant (9)
- General (21)
- Javascript (3)
- Mobile Development (1)
- Sencha (1)
- Ruby (42)
- Ruby on Rails (110)
- Conferences (11)
- Search (7)
- Tutorials (10)
Author Archives: sandipransing
Setting up nginx maximum upload size
>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.
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” class=”twitter-share-button” data-count=”horizontal” data-via=”funonrails”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script> </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
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 … Continue reading