This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/javascript//components/pages/Dashboard.js | |
export default class Dashboard { | |
constructor(params){ | |
this.params = params; | |
console.log('Hi, this is Dashboard class',params); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dot_net": ".NET", | |
"360-degree_video": "360 degree video", | |
"3d_animation": "3D Animation", | |
"3d_design": "3D Design", | |
"3d_model_maker": "3D Model Maker", | |
"3d_modelling": "3D Modelling", | |
"3d_printing": "3D Printing", | |
"3d_rendering": "3D Rendering", | |
"3ds_max": "3ds Max", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The first exercise: Fat Model Skinny Controller | |
# Fat Model, Skinny Controller: refers to how the M and C parts of MVC ideally work together. | |
# Namely, any non-response-related logic should go in the model, ideally in a nice, testable method. | |
# Meanwhile, the “skinny” controller is simply a nice interface between the view and model. | |
# Chaeck this artical: https://dev.to/kputra/rails-skinny-controller-skinny-model-5f2k | |
#### Bad Code #### | |
# app/controllers/posts_controller.rb | |
class PostsController < ApplicationController |