RUBY: Create an empty array and have array length
This will create an array with the 10 empty elements.
>> Array.new(10, '')
Output
=> ["", "", "", "", "", "", "", "", "", ""]
People.update_all( "name = 'Joe'", "name ilike '%joe%'" )
cookies[:login] = { :value => "asdf", :expires => Time.now + 600}
The above cookie will :expires in 10 min .
To Delete the Cookie in Ruby on rails:
cookies.delete :login
To Delete Cookie in Javascript:
createCookie(":login","",-1);