Wednesday, August 19, 2009

Using marquee

Code of marquee to scroll images

<marquee behavior="alternate" direction="left" scrollamount="1" align="center" >
<li> <img src="/images/image1.png" alt="image1" /> </li>
<li> <img src="/images/image2.png" alt="image2" /> </li>
<li> <img src="/images/image3.png" alt="image3" /> </li>
<li> <img src="/images/image4.png" alt="image4" /> </li>
<li> <img src="/images/image5.png" alt="image5" /> </li>

ul li{margin:0; padding:0; display:inline; float:left;}

If we start increasing the scrollamout of the marquee the speed of the content in the marquee will rise.

Other marquee attributes can be found at

Wednesday, August 12, 2009

undefined method 'collect' after installing one click installer

After Installing ruby with one click installer never forget to update the gems:
gem install rubygems-update
gem update --system

If you don't do so you will get bunch of errors at gitbash/ command prompt what ever you use
the error will be for sh.exe

rake aborted!
undefined method `collect' for #. . . . . . . .

You can see full trace by running task with --trace

After getting these message if you update the gems and the projects will start running properly and you will get something like this
Deprecation Notices:

* Bulk index update is no longer supported (the code currently remains, but not the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.