> **************************************************************
> <h1>Listing artists</h1>
>
> <table>
> <tr>
> </tr>
>
> <% @artists.each do |artist| %>
> <tr>
> <td><%= link_to 'Show', artist %></td>
> <td><%= link_to 'Edit', edit_artist_path(artist) %></td>
> <td><%= link_to 'Destroy', artist, :confirm => 'Are you sure?',
> :method => :delete %></td>
> </tr>
> <% end %>
> </table>
>
> <br />
>
> <%= link_to 'New artist', new_artist_path %>
> **************************************************************
Sorry, I pasted in the incorrect view. You get the idea. Just replace
"artists" with albums. The scaffolding issue has to do with both albums
and artists. Hope I didnt make it more confusing.
Thanks!
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment