Month: August 2017

Building my first little Ruby gem

Strategies when creating a new gem: add a module to application_controller.rb think about from where the gem should be called from     with the code above I'm going to implement a copyright that shows on all of my pages, I just have to call it with   and voila I got what I wanted: … Continue reading Building my first little Ruby gem

Advertisements

Deep Dive ActionView

  What is Action View?   "In Rails, web requests are handled by Action Controller and Action View. Typically, Action Controller is concerned with communicating with the database and performing CRUD actions where necessary. Action View is then responsible for compiling the response."   "To avoid cluttering the templates with boilerplate code, a number of helper classes … Continue reading Deep Dive ActionView