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 %>
<tr>
<td><%= i.id %></td>
<td><%= i.name %></td>
<td><%=
i.created_at.strftime("%Y-%m-%d")%>
<td><%=
i.updated_at.strftime("%Y-%m-%d") %>
<td><%= link_to 'Edit',
edit_artist_path(i) %>
</tr>
<% end %>
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