I am facing problem with resource map
I have controller of artst
class ArtistController < ApplicationController
in routes I have map.resources :artist
and in view
for i in @artist %>
link_to ‘Edit’, edit_artist_path(i) %>
edit_artist_path(i) produces link as artists/1/edit
and I want link as artists/edit/1
How can I do that ?
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 2/6/2008 8:14 PM