Today, I was wondering if there would be a way to add translated routes automatically in Ruby on Rails. This is for a project I'm currently working on, whose users speak mostly spanish, so I want to make them happy with urls like "/contacto", "/quienes-somos" and "/trabajos/1" instead of "/contact", "/about-us", and "jobs/1".
Continue Reading »-
Rails 3.1 - Translating routes
-
jQuery Rambling Slider v0.1.1 is out!
Yesterday, I released v0.1.0 of the jQuery Rambling Slider and, as it happens with with all software development, some bugs were found. But hey, I took the time to fix them and now the v0.1.1 is out!
Continue Reading » -
jQuery Rambling Slider has been released!
A while ago I was looking for a good image slider jQuery plugin to use on a project, and Nivo Slider turned out to be the best candidate. I made some modifications for my needs at the moment and issued a pull request, but had no luck. I also said that if my pull request didn't get accepted or took too long to be accepted, I would release it myself.
Continue Reading » -
The nokogiri gem and the "libxslt is missing" error
I ran into this issue today. But this one's easy. Just run the following command and install the gem again:
Continue Reading » -
Using Postgresql with Rails 3.1: the 'pg' gem
As you may know I've been learning Ruby on Rails for the last few weeks. I'm also currently developing an application using the edge version of RefineryCMS (which is really a Rails 3.1 application), integrated with the almighty Heroku.
Continue Reading » -
Refinery CMS, rails 3.1.1 and the Operation not permitted error Errno::EPERM
The last couple of days, I've been trying to set up Refinery CMS for a project I'm working on. I've made a couple of Stack Overflow questions about which ruby on rails CMS supports multiple languages and custom types.
Continue Reading » -
Rails 3.1 "rails console" fails with "no such file to load -- readline"
Yesterday, I was trying to run the
Continue Reading »rails console
command on Ubuntu with ruby 1.9.2 and rails 3.1, without any success. I was getting ano such file to load -- readline
error. This kind of error was sort of familiar for me (I had the commonno such file to load -- zlib
and the not so commonno such file to load -- openssl
a while ago). So this was probably another package that I was missing. -
Rails 3.1 smtp gmail Errno::ECONNREFUSED Connection refused
I was trying out the rails 3.1 smtp mailer on the sandbox application I use to test all the new stuff and it was throwing this error:
Continue Reading » -
Android Market not showing all installed apps
As you may have read a couple of days ago, I had a lot of issues with the market when I installed Cyanogenmod7.1.0-RC1 on my HTC Inspire 4G. But thankfully, I solved that and I thought that was it.
Continue Reading » -
Rails 3.1 and the assert_select_jquery
Diving a little into rails 3.1, I'm really liking some of the stuff I've found, like the easy Ajax integration for the views and the functional tests to ensure that the behavior of the controllers is the expected one.
Continue Reading » -
Updating and/or uninstalling all installed gems
I like to have an rvm gemset (see more about rvm) with the latest versions of all gems and I usually use this as my sandbox for testing out the latest features and issues of the gems. To update one gem to it's latest stable version, you just have to run this:
Continue Reading » -
Change cursor highlight color on Vim
One of the first things I do when setting up my Vim on Ubuntu is download akitaonrails' vimfiles, which has lots of cool stuff bundled. I like the dark theme that is set up (dark gray background and white foreground, and helps my sight issues).
Continue Reading » -
jQuery Nivo Slider and images of different size
A couple of days ago, I needed to add a slideshow to a project that I'm currently working on.
Continue Reading » -
Android Market 3.1.3 and 3.1.5 crash with "Force stop" error on HTC Inspire4G/DesireHD with Cyanogenmod 7.1.0-RC1
Yesterday, I installed the Cyanogenmod 7.1.0-RC1 on my HTC Inspire 4G phone. It looks and works great, but since the minute I installed it, I started to have issues with the Android Market, specifically versions 3.1.3 and 3.1.2.
Continue Reading » -
git submodule and the libiconv-2.dll issue
Yesterday, I made a fresh install of the latest msysGit (which is 1.7.6 as of right now).
Continue Reading » -
jQuery fadeIn and fadeOut: IE bug workaround
I was trying to do some cool effect on a project I'm working on by fading in the front page.
Continue Reading »
The trick looks really nice and it's easy to implement. -
Rails 3.1 "rake db:migrate" fails with "stack level too deep" error
I was trying to run the following command on a new rails 3.1 app and it was failing... badly.
Continue Reading » -
JetBrains and the IdeaVIM plugin
Last night I installed the latest version of RubyMine (just to have it as a backup plan though).
Continue Reading »
I then tried to install the IdeaVIM plugin which, for older versions, had worked fine for me. -
Rails 3.1 "rails server" error Could not find a JavaScript runtime
I upgraded to rails 3.1.0 and created a new 'test_app'.
Continue Reading » -
RubyMine vs Vim: my point of view
So, I tweeted a question earlier today about what editor is preferred by the rubyists and, although I didn't get many answers, it, combined with a recent discussion I had about RubyMine vs Vim later, helped me clear my reasoning a bit.
Continue Reading »