Tag Archive > rails

Routing Polymorphic Resources in Rails

Routing in Rails is a breeze, but when dealing with polymorphic resources it is less than polished. Consider this example: an eCommerce application consists of products, which I can view in the scope of the store, a category or my shopping cart. This would require the following routes: /products/1 /category/2/products/1 /cart/3/products/15 This is simple to [...]

Continue reading

, ,