Archive for April 2012
-
Introducing rambling-slider-rails: Easily include the jQuery Rambling Slider on your rails app
April 27, 2012
This post was originally published in the Rambling Labs Blog on April 27, 2012.
About three weeks ago, I had to use the jQuery Rambling Slider together with the Rails asset pipeline… It was a headache and a total mess… Having to change all the references to the images on the CSS file, as well as the themes was not as smooth as I would like that to be.
So, I automated the process a bit locally and started to think how would be the easiest way to integrate the jQuery Rambling Slider into a Rails app. Then it hit me…
Of course! How about building a gem that includes the necessary adjustments for the asset pipeline on Rails? That would we really cool and will save me from doing the same process over and over again for each new application…
-
Git: Removing sensitive data and rewriting history
April 27, 2012
This post was originally published in the Rambling Labs Blog on April 27, 2012.
One thing that tends to happen with Git, is being careless with what you add to your repository. I’ve seen this happen since I began using Git, a couple years ago, and it stays happening over and over again, for various reasons.
On one of the projects I was a long time ago, we added lots of files with sensitive information, including emails and passwords for some accounts for certain services. We also added a lot of images that weren’t really needed, and some of the ones that were needed, were not in the optimal size either. We were just starting up with Git, and we didn’t know what to include or exclude.
To avoid making the story any longer, I just have…
-
Rails - Custom 404 and 500 pages and the exception_notification gem
April 27, 2012
This post was originally published in the Rambling Labs Blog on April 27, 2012.
As I explained before on the Rails 3.1 - Adding custom 404 and 500 error pages post, sometimes you might want to have a custom way to handle your not found and internal server errors. In that case we wanted to show the error with a custom template.
But, what if I have an important site from which I want to be notified if there is any error raised? There are a couple of gems for this. The one I’m most familiar with is
exception_notification
gem, which is easily configured as it is depicted on its README.This gem is added to the rails middleware stack and will capture any raised error and send you an email notifying about it.
However, someone pointed out…