How to Change your mysql root user password

September 29, 2009 Leave a comment

This is a quick guid on how to change your mysql root password (I’m using ubuntu here..)

open up a command prompt

type -> mysqladmin -u root -p password ‘root’


root – is the root user

password – your new password (its again root in the above example)

and hit enter

it will prompt you to enter your current password (of root)

enter the current password

thats it 🙂


New ruby-rails user group in Sri Lanka

September 3, 2009 Leave a comment

Hi All,

Today we have created a new user group for ruby-rails in Sri lanka – You can fined if here

twitter ->

Main motivation behind this is to spread the ruby language  among sri lankan developers and make the awareness.. Another main thing we would like to achieve is to share our knowledge through  monthly meetings..

Almost anybody can join and all are welcome…

Hope this will be a good start for all of us 🙂

Categories: Ruby Rails Tags:

Passing parameters to a partial

August 19, 2009 2 comments


This is just a quick post about how to pass parameters to rails partials. (As most of you all know, partials are lightweight than components) and personally I’m using it in my project as headers and footers.

But if we are to pass some parameters to the partial how to do that ?? its simple as this

render :partial => “<partial name>”, :locals => { :param1 => “value”}

<partial name> – name of your partial (Ex /partials/footer)

:params1 – parameter name

“value” – value

Its quick and simple 🙂

Categories: Ruby Rails Tags: , ,

render_component plugin and rails 2.3

August 7, 2009 5 comments

OK, since Rails 2.3 has depriciated the render_component method and advising to use a plugin for that I went and downloaded the plugin from but ended up being getting this error..

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method’: undefined method `set_session_options’ for class `ActionController::Base’ (NameError)


Ok… Now what… After doing some googling finally I found a fix to that…. Use this git

script/plugin install 
git:// -r rails-edge 

and that fixed my issue... hope yours as well :)

and thanks for this link —