Archive for June, 2009

Monday, June 29th, 2009

Mandriva – Eclipse – Aptana RadRails

Problem
You want to do a new installation of Aptana RadRails IDE in Mandriva as an eclipse plugin.
Solution

Install eclipse first (selecting openjdk when prompted):
sudo urpmi eclipse

According to the instructions here take the following steps:
From the Help menu in Eclipse, select Software Updates
Select the Available Sotware tab
Click the “Add Site..” button.
Specify the Location Url update site: http://update.aptana.com/update/studio/3.4/ [...]

2 Comments » - Posted in Mandriva, ruby on rails by kosmas

Wednesday, June 24th, 2009

undefined method `render_component’ with ActiveScaffold and Rails 2.3.2

Problem
When using a nested (or embedded) scaffold in ActiveScaffold with Rails 2.3.2 you have the error:
undefined method `render_component’
Solution
According to the issue here, in Rails 2.3 the render_component has been removed.
Install the render_component from:
script/plugin install git://github.com/lackac/render_component.git -r rails-edge
and restart your server, and it should be working.

1 Comment » - Posted in ActiveScaffold, linux, ruby on rails by kosmas

Tuesday, June 16th, 2009

undefined method `cache_template_loading=’ for ActionView::Base:Class

Problem
While developing on Rails 2.3.2 you want to deploy in dreamhost that uses 2.2.2 at the moment.
Solution
Although we could try to freeze the specific rails version we are using, it’s probably easier as a temporary solution, until dreamhost upgrades the rails version to do the following:

Make sure that we have the following line with the [...]

No Comments » - Posted in Dreamhost, ruby on rails by kosmas

Wednesday, June 10th, 2009

DoS vulnerability in Ruby

Problem
There is a DoS vulnerability in Ruby, and consequently in Ruby on Rails, reported by Jose Fernandez
Solution
For anyone that haven’t so far looked into it there are some links to resolve the problem:
Ruby site
The link below also includes an example script (example.rb) to see if your version of Ruby is vulnerable:
NZKoz fix

No Comments » - Posted in ruby on rails by kosmas