Explain me what is the naming convention in rails?



Explain me what is the naming convention in rails?..

Answer / Banafsha Siddiqui

Ruby on Rails follows strict naming conventions to maintain a consistent and organized structure throughout your application. Common conventions include:nn- Controller names should have the suffix 'Controller' (e.g., UsersController).n- Model names are derived from the database table name (e.g., User for a users table).n- Views use the pluralized version of the model name with a .html.erb extension (e.g., users/index.html.erb).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

am new to ruby. tell me one thing. i can view my project on browser when i write "ruby script/server". otherwise i cant view my project on localhost. what i have to do to view my project always on browser? pls help

5 Answers  


what is the use of super function in ruby on rails?

1 Answers  


What is a ruby singleton method ?

1 Answers  


Explain the advantages of ruby on rails?

1 Answers  


Explain some features of nested scaffolding.

1 Answers  


What are the different types of association relationships that exist?

1 Answers  


Explain what are the servers supported by ruby on rails?

1 Answers  


What is the flash?

1 Answers  


What is ORM in Rails?

1 Answers  


Tell me what is mixin in rails?

1 Answers  


what is the difference between destroy and delete?

1 Answers  


How to find second max element from database ?

1 Answers  


Categories