I build stuff: ruby-on-railsPosts tagged with ruby-on-railshttp://www.guillaume-barillot.com2022-05-05T14:36:00ZGuillaumeA better organisation for JS/Jquery code base using Rails and Coffeescripthttp://www.guillaume-barillot.com/2014/08/15/a-better-organisation-for-your-js-using-rails-coffeescript/2014-08-15T08:59:00Z2022-05-05T09:01:28+02:00GuillaumeOnce upon a time, there were two very, very distant planets… the first one was using brand new shiny full stack JS Frameworks, that handle rooting, templating, data binding.
On this planet, apps were blazing fast, Javascript files were well organisedSwitch from Selenium+Firefox to Poltergeist+Phantomjs and speed up your test suite http://www.guillaume-barillot.com/2013/03/23/Switch-from-SeleniumFirefox-to-PoltergeistPhantomjs-and-speed-up-your-test-suite-/2013-03-23T00:00:00Z2022-05-05T09:01:28+02:00GuillaumeSelenium is a great tool for integration testing but it has two major drawbacks :*it relies on Firefox engine, so every time Firefox updates, you have to cross your finger and praise your test suite will still be usable
it is f*** slow
Solve those 2Paperclip caching and clean URLs or DragonFly on the fly image resizing ? Get the best of both worlds !http://www.guillaume-barillot.com/2012/11/16/Paperclip-caching-and-clean-URLs-or-DragonFly-on-the-fly-image-resizing-Get-the-best-of-both-worlds-/2012-11-16T00:00:00Z2022-05-05T09:01:28+02:00GuillaumeWhen it came across image manipulation using Rails, I had to make a choice : Paperclip to handle high traffic/popular websites, and DragonFly for privates, more confidential but also more evolutive applications.
Let’s start with an example :# PaperclipGérer correctement les accents avec Ruby, Rails et upcasehttp://www.guillaume-barillot.com/2012/08/14/Grer-correctement-les-accents-avec-Ruby-Rails-et-upcase/2012-08-14T00:00:00Z2022-05-05T09:01:28+02:00GuillaumeC'est assez étonnant d'avoir encore ce genre de problème de nos jours, mais Ruby (même 1.9.3), ne gère toujours pas correctement les passages de caractères accentués en majuscule. Explication :> puts “café”.upcase
CAFé
Pas terrible, hein ? Une solutionUn premier avis sur Spree (plateforme Ecommerce pour Ruby on Rails)http://www.guillaume-barillot.com/2011/11/02/Un-premier-avis-sur-Spree-plateforme-Ecommerce-pour-Ruby-on-Rails/2011-11-02T00:00:00Z2022-05-05T09:01:28+02:00GuillaumeDepuis bientôt trois ans que je pratique quotidiennement Ruby on Rails, il est toujours resté pour moi une problématique encore non résolue : “et pour le E-Commerce, on fait comment ?”. Je dois bien le dire, pour l'instant : “je fais comme je peux”. EnRulu 2011 : la communauté Ruby (on Rails) Européenne vaut vraiment le détourhttp://www.guillaume-barillot.com/2011/07/02/Rulu-2011-la-communaut-Ruby-on-Rails-Europenne-vaut-vraiment-le-dtour/2011-07-02T00:00:00Z2022-05-05T09:01:28+02:00GuillaumeUn p'tit peu de retard dans la restranscription de RULU, la conf’ Ruby (on Rails) Lyonnaise qui a eu lieu le Week-end du 25/26 Juin, mais je tenais à laisser une trace quelque part de cet évenement. Oui, évenement, on peut le dire.
Tout d'abord :
la