What role do sub-directory app/helpers and app/controllers play?
Answer / Amit Kumar
In Ruby on Rails, `app/helpers` contains classes used to share helper methods between views. These helpers encapsulate application-specific logic and make it easier to reuse code across multiple views. On the other hand, `app/controllers` stores controller classes that handle requests from users, manage data flow within the application, and determine how the response should be rendered.
| Is This Answer Correct ? | 0 Yes | 0 No |
The string can be represented in single as well as double quotes. What is the difference between the two?
What is the current version of ruby on rails?
what is Rails Active Record in Ruby on Rails?
Write the command to run the migration.
What are generators in ruby on rails?
Can you list out what can rails migration do?
What are float, dig and max?
Explain some features of nested scaffolding.
Explain me the log that has to be seen to report errors in ruby rails?
how can we define Ruby regular expressions?
What are the steps involved in writing and setting up an application in ruby on rails?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?