Quantcast
Channel: Andrea Pavoni - Blog
Browsing all 10 articles
Browse latest View live

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 Article



Store 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 Article

A 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 Article

Using 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 Article

3 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 Article


jQuery custom plugin skeleton with CoffeeScript

A basic example to show how to implement simple/clean jQuery plugin with CoffeeScript.

View Article

Rails4 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 Article

Create 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 Article


Hello 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 Article


A 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
Browsing all 10 articles
Browse latest View live




Latest Images