Using Full C.R.U.D inside a Rails App

Ruby on Rails!

What is Ruby on Rails?

Rails Principles

CRUD Tutorial

rails new league-of-legends-spell-maker
cd league-of-legends-spell-maker/
rails g model ability name description
rails g controller abilities 
only: [:index, :show, :destroy, :create] is the shortcut!
Ability.create([{name: "WORLD ENDER",
description: "Fear nearby enemy minions and gain attack damage, increased healing, and movement speed. Takedowns extend this effect."
},{name: "STATIC FIELD",
description: "Enemies attacked are marked and take lightning damage after 1 second. Additionally, activate this ability to remove nearby enemies' shields, damage them, and silence them briefly."
},{name: "ACE IN THE HOLE",
description: "Deal massive damage to a single target at a huge range. Enemy champions can intercept the bullet for their ally."
}]);

Thanks for reading, and happy coding!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store