I have a system where users can check-in/check-out books, I want to make it so a user can keep a book for one week.
How can I do 'created_at + 1 week' for my book loan item?
At the moment I have a table like this which displays some information: - On the 'check-in time' column I would like to add check-out time + 7 days
<table>
<tr>
<th>Author</th>
<th>Title</th>
<th>User Name</th>
<th>User Email</th>
<th>Check-Out time</th>
<th>Check-In time</th>
</tr>
<% for item in @books_loaned %>
<tr>
<td><%= item.book.author %></td>
<td><%= item.book.title %></td>
<td><%= item.user.name %></td>
<td><%= item.user.email %></td>
<td><%= item.created_at %></td>
<td><%= button_to "Check-In", {:controller => :librarian, :action =>
:check_in}, {:method => :post} %></td>
</tr>
<% end %>
</table>