Glossary

Definitions and explanations i wish i had when i was starting.


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


A


B


C

  • CRUD: Stands for Create, Read, Update, Delete. These are the four basic functions of persistent storage, i.e. in cases where you are using a database.


D


E


F

  • form_for: A Ruby method into which a Ruby object is passed. It creates a form directly connected with an ActiveRecord model. It yields a FormBuilder object that lets you create form elements that correspond to attributes in the model. Works well for CRUD forms.

  • form_tag: The most basic form helper available in Ruby on Rails. It uses tag form elements to build out a form. Unlike the form_for helper, it doesn’t use FormBuilder. Works well for forms not connected with models.


G

  • generators: In Ruby on Rails, generators can set up some basic, standardized code. They need to be matched to the appropriate task. The syntax is:

      rails generate <name of generator> <options> -- no-test-framework

    Main generators include: migrations, models, controllers, resources


H


I

  • Information Architecture: The structure for a website, application, or other project that allows us to understand where we are as users and where the information we want is in relation to our position.


J


K


L


M


N


O


P


Q


R


S

  • scaffold: In Ruby on Rails, a scaffold goes beyond a generator by creating both front and back end code. They are discouraged in production because they create so much code and so many files they can be hard to manage. The resource generator will let you build out the base setup required but let you control the implementation. The basic syntax is:

      rails g scaffold <capitalized singular model name> 
        <optional 1st attribute name>:<first attribute type> 
        <optional 2nd attribute name>:<2nd attribute type> 
        --no-test-framework

T


U


V


W


X


Y


Z

  • React directory: After using create-react-app, you will see several folders in your directory.

    • src - where we put all of the source code that we write

    • public - stores static files, like images

    • node_modules - contains all project dependencies

    • package.json - records project dependencies and configures project

    • package-lock.json - records exact version of packages installed

    • README.md - instructions on how to use this project


Last updated on September 7, 2019.