Rails
Articles on Rails
-
factory_girl Validation failed
Using factory_girl to create several instances of a class that belongs to another class causes a Validation failed error. This happens because each instance tries to automatically create the object to which it belongs. However since the first instance creates it, the following instances crash because the object already exists.
-
Processing previously uploaded files with paperclip
It seems that the most popular use of paperclip is to upload and process images. However it is also very useful to handle data files. I am currently using paperclip to upload data files and process them later in a background task using delayed_job since the files are quite big and proccessing them takes several minutes.
-
How to install Rails 3 on Ubuntu
In this post you will find the steps to install git, rvm, ruby and Rails on Ubuntu.
-
Using rails-sqlserver-2000-2005-adapter on Windows
This is a different approach to my previous post Using SQL Server in Rails 2. Now I am using Rails 2.2.2 on Windows and the Rails SQL Server 2000-2005 adapter. Additionally I am using ODBC, because ADO support seems to be deprecated.
-
Using SQL Server in Rails 2
These are the steps to access a SQL Server database from a Rails 2.0 application running on Windows.