From: Nickolas <sir.nicko...@gmail.com>
Date: Sat, 6 Oct 2012 04:19:13 -0700 (PDT)
Local: Sat, Oct 6 2012 7:19 am
Subject: Customizable parameter name in routing.
There is a function "resources" in the class "SingletonResource" that Also, there are some gems(as "friendly_id") that give a possibility to But for several reasons this approach makes me feel odd. The fact that in @photo = Photo.find_by_name(params[:id]) Which can be hardy called beautiful. "params[:name]" should fit much So, my suggestion is to add a :param_name option to "resources" method so resources :photos, :param_name => 'name' GET /photos/:name Could it be useful if I add such feature? In addition, there is a whole You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||