Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## method in controller
- def listcolors
- @colors = Wcolor.find(:all)
- end
- ## view listcolors.rhtml
- <% i = 0%>
- <% for wcolor in @colors %>
- <%= link_to "#{@colors[i]['colorname']}", { :action => 'colorpage' } %>
- <% i = i + 1 %>
- <br />
- <% end %>
Add Comment
Please, Sign In to add comment