Archive

Archive for the ‘rails’ Category

Change default table name of session active_record_store for rails 2.3.x.

October 19th, 2009

Just a little tip that can save some time. Before rails 2.3.x you should define the new table name like

CGI::Session::ActiveRecordStore::Session.set_table_name “new_table_name”

Now you have to define it like that

ActiveRecord::SessionStore::Session.set_table_name “new_table_name”

Verify if the element exists before replace_html

July 5th, 2009

I tried many things before decide to extend the framework. But did not get stisfied with the avaliable solutions. So here it is.

Just put the code bellow in some initializer.

Author: murad Categories: rails Tags: , ,

Gitorious installation.

April 20th, 2009

I just create a script that will automatically install gitorious in a ubuntu server.

If you are having troubles installing it, you can try the script or take a look in what it does.

http://github.com/marcelomurad/rails-env-install/

Author: murad Categories: Ubuntu, rails Tags: , ,

Customise error fields

March 22nd, 2009

The default rails error message style is to insert a div with attribute class set to fieldWithErrors involving the form field.

That is how I’ve changed the default rails behaviour to inject css error class into the object.

Author: murad Categories: rails Tags:

RailsConf 2009 aí vou eu!

March 16th, 2009
Author: murad Categories: rails Tags: