Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Web Developer Interviews:BootstrapFront End Web DeveloperHTML DeveloperHybrid Application DeveloperInternee PHP DeveloperJnr PHP/Codeigniter DeveloperJunior Developer PHPLaravel PHP DeveloperPython DeveloperRuby DeveloperTypographyWeb Developer & DesignerWeb Developer Cum SEO AnalystWeb Development NinjasWebsite DeveloperWordPress Themes Developer
Copyright © 2018. All Rights Reserved
Ruby Developer Interview Question:
Explain me what is the naming convention in Rails?
Submitted by: Muhammad☛ Variables: For declaring Variables, all letters are lowercase, and words are separated by underscores
☛ Class and Module: Modules and Classes uses MixedCase and have no underscore; each word starts with a uppercase letter
☛ Database Table: The database table name should have lowercase letters and underscore between words, and all table names should be in the plural form for example invoice_items
☛ Model: It is represented by unbroken MixedCase and always have singular with the table name
☛ Controller: Controller class names are represented in plural form, such that OrdersController would be the controller for the order table.
Submitted by: Muhammad
☛ Class and Module: Modules and Classes uses MixedCase and have no underscore; each word starts with a uppercase letter
☛ Database Table: The database table name should have lowercase letters and underscore between words, and all table names should be in the plural form for example invoice_items
☛ Model: It is represented by unbroken MixedCase and always have singular with the table name
☛ Controller: Controller class names are represented in plural form, such that OrdersController would be the controller for the order table.
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.