9 Posts in Ruby
Let’s say you have a few routes that are all related, but don’t really map to the usual resources. For example, a login/logout controller named SessionsController doesn’t really fit the usual resourceful route model. Head past the break for all the details.
Recently I came across the need to parse a bit of a config file, in this kind of format: “Category=filetype;…” Here is how one would do such a thing using split, inject and map.
In the last post we set up the new car view. In the final post let’s add the ability to delete a car and wrap up this series.
In the last post, we set up a show and edit view. Let’s set up a view that allows for adding new cars.