Rounded Corners Using Pure CSS Without Images And Javascript
Please follow the link below
http://satishchauhan.com/2009/01/01/rounded-corners-using-pure-css-without-images-and-javascript/
Please follow the link below
http://satishchauhan.com/2009/01/01/rounded-corners-using-pure-css-without-images-and-javascript/
Posted by Satish Chauhan at 10:59 PM 5 comments
Labels: rails, ror, ruby on rails
Please follow the link below
http://satishchauhan.com/2008/12/30/dynamic-scope-methods-in-edge-rails/
Posted by Satish Chauhan at 10:00 PM 0 comments
Labels: rails, ror, ruby on rails
Ruby on Rails and Merb team decided to merge both of the frameworks into a singular web framework in Rails 3. The two frameworks have much in common and share code in a variety of places.
Please click here to find the detailed post by DHH.
Posted by Satish Chauhan at 9:56 PM 0 comments
Labels: rails, ror, ruby on rails
All of you must know how to load fixtures to db
rake db:fixtures:load
To load a subset of your fixtures to your projects db
rake db:fixtures:load FIXTURES=users,stores
Posted by Satish Chauhan at 6:12 PM 1 comments
Labels: fixtures, rails, ror, ruby on rails
Recently I needed to implement star rating system for one of my project I am working on.
If you are not familiar with a star rating system, its simply a method of voting using (usually) 5 stars in a row, which will change colour as you hover over them indicating the level at which to rate something. You may think a simple rollover would accomplish this but difficulty arises because as you rollover each star it should stay highlighted while you light up the next one and so on until the end of the row of stars.
click here to find more details>>
Posted by Satish Chauhan at 12:34 AM 1 comments
Labels: rails, rating, ror, ruby on rails
Pagination is a very common task in web application development. But sometimes we need to paginate something with ajax request. The interest to use Ajax for this is to provide a dynamic interface which doesn’t need to reload the entire page when next results(page) displayed. Ajax is really nicely integrated with Rails, and using it is very easier with this great framework. To work with ajax requests your browser must be enabled to handled java script requests. I knew two methods for that problem.
For More details click here >>
Posted by Satish Chauhan at 11:00 AM 1 comments
Useful expressions for email address validation
Matches a limited version of the RFC 2822 addr-spec form.
/\A(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&
\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]
(?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}
[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]
?\d{1,2}|2[0-4]\d|25[0-5])\]))\Z/i
Posted by Satish Chauhan at 4:18 PM 32 comments