Use [Patch] to update date.

Refer to :resource test
I didn't delete that line.
Use on page:load to run the script.

Some document says that rails 4 use something to let page load smoothly without reload the page.
So I cannot use document ready to run my script.
Lend Basic CRUD finished.

1.	Add modify lend function, destroy function is in the link.
Lend basic validation finished.
This message maybe display in the view page, so delete some unnecessary message.