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'
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.