$('#guest_books').prepend("<%= j render partial: 'guest_books/row', locals: { guest_book: guest_book } %>")
$('#guest_book_username').val('')
$('#guest_book_content').val('')

$('#guest_books').prepend("<%= j render partial: 'guest_books/row', locals: { guest_book: guest_book } %>")
$('#guest_book_username').val('')
$('#guest_book_content').val('')

<%= render 'elements/alert' %>

Add success message after successfully created a guest_book message with Ajax
Add success message after successfully created a guest_book message with Ajax
