Jquery is fully supported as a replacement for prototype and is the default javascript library in rails 3 1 reflecting an industry wide move towards jquery.
Ruby on rails group by.
Surprisingly you might not realize that orderedhash is preserving order since it delegates its inspect method to hash.
Ruby on rails 3 0 uses a technique called unobtrusive javascript to separate the functionality or logic from the structure of the web page.
If you re running ruby 1 9 it is simply an alias for hash.
The general layout of a rails application.
Returns a hash where the keys are the evaluated result from the block and the values are arrays of elements in the collection that correspond to the key.
We have a product model and we want to group them by their category.
Group by public groups the collection by result of the block.
How to install rails create a new rails application and connect your application to a database.
How to quickly generate the starting pieces of a rails.
Check the ruby on rails guides guidelines for style and conventions.
The basic principles of mvc model view controller and restful design.
Product select category group category this will query the database as follows.