Loan logic in a library

0

I'm wanting to make a loan from a library book loan,

I made a scaffold for book one for user and one for loan.

In the list of books in each book has a button to lend when I click it takes the id and the name of the book for the loans, in loan will hold the id the name of the book and I will set a user for that loan. >

The problem that I find and make when I lend a book is unavailable to be borrowed and to return this book

NOTE: I have been working with ruby for only two months at a stage, I have never used the language before.

    
asked by anonymous 09.05.2018 / 19:23

0 answers