rails Flashcards
rails: The less than symbol means
inherits from
rails: Template filters are called
helpers
rails: The rails asset pipeline
takes your static files from the assets folder and gets the ready to be served in production
rails: To skip a before_action function from the ApplicationController in a specific controller, type
skip_before_action :function_name in the specific controller
rails: Looping through an empty collection in the template will
not cause an error, but just render nothing.
rails: when doing ajax calls from app
add .json to the end of the url endpoint so I can still use the respond_to block
rails: If the database table is called posts, then the foreign key in a child table would be
post_id
rails: The database table for a Post model will be
posts