what is the naming convention in Rails?



what is the naming convention in Rails?..

Answer / Puneet Rastogi

In Rails, the naming conventions follow a specific pattern for files, directories, and objects. For file names, controller actions, models, and database tables, Rails uses lowerCamelCase (e.g., WelcomeController, createAction, User). For directories, however, it follows PascalCase (e.g., App, Controllers, Models).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

What do you understand by rails migration and what it can do?

1 Answers  


Why RubyonRails?

8 Answers  


What is rails migrations?

1 Answers  


What is Rails?

1 Answers  


What is the directory structure of rails?

1 Answers  


Explain rvm in rails?

1 Answers  


What are the types of caching used in rails, what are they?

1 Answers  


List out the few features of Ruby?

1 Answers  


what is the purpose of the resources method in the code snippet below?

1 Answers  


How are observers and callbacks different from each other?

1 Answers  


What is Dynamic finders ?

1 Answers  


What is the use of $ in ruby?

1 Answers  


Categories