Last week, I watched Ryan Bates' Syntax Highlighting RailsCast and wanted to apply what I had just learned right away, using pygments.
Continue Reading »Tagged 'rails'
-
Pygmentizing your Rails app hosted on Heroku
-
jQuery Rambling Slider new home page
The jQuery Rambling Slider now has its own dedicated section here on ramblinglabs.com. Here's the link: jQuery Rambling Slider | A CoffeeScript improved version of the Nivo Slider
Continue Reading » -
The rambling-slider-rails v0.1.0 has been released!
Version 0.1.0 of the
Continue Reading »rambling-slider-rails
gem is here!
And it includes a major bug fix. -
Rails - Custom 404 and 500 pages and the exception_notification gem
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.
Continue Reading » -
Introducing rambling-slider-rails: Easily include the jQuery Rambling Slider on your rails app
About three weeks ago, I had to use the jQuery Rambling Slider together with the Rails asset pipeline...
Continue Reading »
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. -
Writing your blog posts in Markdown with Postmarkdown
Another thing we added to our new site, uploaded back at the end of December, was the ability to write our blog posts in Markdown, which is a text-to-html tool that allows you to write formatted text without actually having to write all the corresponding HTML. Markdown is used for the project wiki pages on GitHub, and can also be used for the project's readme file.
Continue Reading » -
Rails 3.1: Treating your '.swf' files as assets
This week, I've been deploying one of my current Ruby on Rails projects to WebFaction.
Continue Reading »
For what we found, it's definitely one of the best options out there for shared hosting with Python and Ruby. -
Replacing ERb with HAML on your Rails application generators
As you may know, we've been using HAML lately for our views.
Continue Reading » -
Rails 3.1 - Adding custom 404 and 500 error pages
As I said when announcing the Rambling Labs new site, we've been learning a lot of stuff while building it.
Continue Reading » -
Writing elegant HTML with HAML
Another cool thing that we learned while building the new Rambling Labs site was HAML.
Continue Reading »
It's a markup language that is based on the premise that 'Markup should be beautiful', in their own words. -
Generating your site menu with the 'simple-navigation' gem
One of the cool things I learned while building our new site was how to generate your site navigation menu without having to do the highlighting logic yourself.
Continue Reading » -
Stripping down Rails 3.1: Using only the database migrations
The current project I'm working on is not using Ruby on Rails, but I still want to use ActiveRecord Migrations for the database changes.
Continue Reading » -
Rails 3.1 - will_paginate and AJAX
For a project that I'm currently working on, I have a couple of list views that needed pagination. So I went with the ol'
Continue Reading »will_paginate
gem (which I first saw years ago when I didn't even consider myself a developer) to take care of this. -
Rails 3.1 - Translating routes
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 "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 » -
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 » -
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 »