New to rails! Thanks for reading
I have a database that stores link URL's and their names in one
DB Table is named: links
Model name : Link
Links are stored in the "link_url" column
Their names are stored in the "title" column
They all are assigned an ID on auto increment.
What I want to do is display 10 links at a time out of (50+ links)
And be able to rotate the links on a weekly basis, and display that in
Can anyone help me with this timed loop to display 10 links at a time
This is the default code to display them all.
<% for link in @links -%>
<a href="<%= link.link_url %>"/><%= h(link.title) %></a>
<% end %>