Displaying 2 results from an estimated 2 matches for "sergio_101".
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator..
it''s a great little package, but i am running into one little problem..
i would like to have something that says:
"logged in as <username>" in the site, but i am not quite getting it..
what i am using is:
<p>You are logged in as: <%= @session[:user] %>
but i have tried:
<p>You are logged in as:
2007 May 18
1
initializing a multidimensional array..
i have a plain old array initialized like this:
@columns = Array.new
this array needs to be an array of arrays..
how do i tell ruby that this is an array of arrays?
what i want to do is something like this:
@columns[i] << ''some value''
where is is determined programattically..
obviously, ruby won''t let me do this since @columns[i] is not an
array, but an