Okay, i just fixed the problem.
In index.html.erb to display link i used this:
<td><%= link_to 'Show', admin_category_path(@category) %></td>
<td><%= link_to 'Edit', edit_admin_category_path(@category) %></
td>
<td><%= link_to 'Destroy', admin_category_path(@category),
confirm: 'Are you sure?', method: :delete %></td>
which is the default generated link by scaffold, just added "admin_".
But the problem come from the @category, if i delete the @:
<td><%= link_to 'Show', admin_category_path(category) %></td>
<td><%= link_to 'Edit', edit_admin_category_path(category) %></td>
<td><%= link_to 'Destroy', admin_category_path(category), confirm:
'Are you sure?', method: :delete %></td>
Everything works fine!
Thanks a lot!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.