Quantcast
Channel: WebSource » Ruby on Rails
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Ruby on Rails & Compressed Prototype

Hello! Today I’m wandering about a compressed version of prototype to use in my brand new ruby on rails application. Initialy I didn’t understand why rails doesn’t provide a compressed version of...

View Article



Image may be NSFW.
Clik here to view.

Estendere Ruby con C

Capita a volte di aver bisogno di estendere Ruby con codice C. I motivi principali riguardano le performance dell’applicativo e la comodità garantita da un linguaggio di basso livello come C. Altre...

View Article

Image may be NSFW.
Clik here to view.

How to downgrade rails version on debian

If you want to downgrade rails (aka install an old version of rails) on debian first of all install rails gems. Execute next command as root: apt-get install rubygems Remove rails package of debian if...

View Article

Image may be NSFW.
Clik here to view.

undefined method `length’ for Enumerable Enumerator on text_helper.rb:50:in...

With rails 2.0.2 and ruby 1.8.7 you can find this error using rails truncate helper To solve this problem, paste this code in your enviroment.rb (eof). module ActionView module Helpers module...

View Article

Image may be NSFW.
Clik here to view.

sanitize inline css with rails

Hi! You can simply use the sanitize(…) helper in your views to whitelist allowed tags and attributes… but what to do if you need to sanitize the content of a style attribute?  I found a solution to...

View Article


Image may be NSFW.
Clik here to view.

Validazione Codice fiscale Partita IVA con Ruby / Ruby On Rails

Cercando di validare codice fiscale e partita iva con Ruby, sono capitato nel sito di Umberto Salsi, dove si parla della validazione di Partita Iva e Codice Fiscale. Visto che l’implementazione in Ruby...

View Article

Image may be NSFW.
Clik here to view.

lighttpd, fcgi, rails and child exited with status 9, 1, 2, 3 or X

Ok, these errors are not good. They didn’t tell much about what happended. But you can’t do as I did. Don’t wander on the dark side of the system… Just try to execute your FCGI as your lighttpd did....

View Article

Image may be NSFW.
Clik here to view.

rails date validation, rails validate date for date_select

Ok, you are in right place if you need to validate a date from date_select helper. Expecially if your problem is an invalid date like ’31/02/2009′  that becomes ’02/03/2009′ on rails! If you don’t want...

View Article


Image may be NSFW.
Clik here to view.

ruby on rails on nokia N900

Yes, we can! ruby on rails works well on nokia n900. Install ruby from maemo repository (dev). Download and install rubygems (use –no-rdoc and –no-ri). Rubygems creates only /usr/bin/gem1.8 so you...

View Article


Image may be NSFW.
Clik here to view.

sphinx and WARNING: DOCID_MAX document_id, skipping

This error seems to wake-up with large ids >100.000.000 (like Ruby On Rails fixtures sys does). Ok, like Piotr Jasiulewicz says this error appears because the sphinx was built without the...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images