Rails 3: An improved agnostic search model using Arel
In the last post, I explained how to make conditional searches based on conditional params. I wrote a very simple Search class that returns a real model with query done by Arel. I refactored the code...
View ArticleStore Rails views on database
When it comes to develop a CMS, one of the main problems concerns where or how to store and organize views (templates, partials, layouts) for particular needs like different layouts for specific pages,...
View ArticleA new blog, more fun
It was exactly one year ago, when I launched for the first time http://andreapavoni.com. Now I'm here with a shiny new website, powered with a custom blog engine and some stuff to show off :)
View ArticleUsing one carrierwave image uploader with different sizes on several models
Uploading images with custom sizes on different models is a very common task during web development. Every time, people uses different image uploaders for each model, where the only difference is about...
View Article3 weeks with a kindle
When I purchased an amazon kindle, some people started to ask about how's going with it and if it's worth to buy one. I decided to write a review only after the first battery recharge, just to be quite...
View ArticlejQuery custom plugin skeleton with CoffeeScript
A basic example to show how to implement simple/clean jQuery plugin with CoffeeScript.
View ArticleRails4 StrongParameters with Devise and multiple resources
Rails 4 will use StrongParameters by default. However, it doesn't seem that Devise is ready for this feature, even using its rails4 branch. There's a good example that explains how to solve this...
View ArticleCreate recursive OpenStruct from a Ruby Hash
Maybe you already know and used the Ruby's OpenStruct class. I've played a bit with it to create a very easy to use configuration system for Ruby apps.
View ArticleHello Go lang!
During the last months, I was looking for a new programming language to learn for fun and profit. I picked Go lang, then I tried to build something enough complete and/or useful, to see how it feels to...
View ArticleA rails 4 tutorial application for beginners
This article was originally written for the 12 Devs of Summer and posted here. It was written for beginners, I described how to get up and running withRuby and Rails and I tried to offer an in depth...
View Article
More Pages to Explore .....