Skip to content

Debugging Commands for Rails Console

kai edited this page Nov 25, 2017 · 1 revision

Creating a new book

b = Book.create!(description:"book", key:"book", name:"book", latitude: 1, longitude: 1)

Edit a new book

b.update(id:b.id)

Clone this wiki locally