Custom Nested Routing in Rails 2.3?

Depending what your routes and aliased titles look like, you can use something like the following.

Depending what your routes and aliased titles look like, you can use something like the following: resources :images, :path => '/:title/:id', :constrain => { :title => /a-z_-+/ } # in your view image_path(image. Title, image) Keep in mind that routes match in the order they are defined, so you will want to put this line down at the bottom of your routes file so that it doesn't interfere with routes like /users/2. All this said, you should strongly consider whether your use case can live with an anchor like /image.It'll prevent a lot of confusing problems with routing that will very likely bite you in the ass down the line.

It's not infeasible to do without the anchor, but it does create additional work.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions