what is the role of sub-directory app/controllers and app/helpers?
Answer / Shipra Mehrotra
In a typical Ruby on Rails application, app/controllers stores all controller classes that handle user requests. Each controller handles requests for a specific part of the application. app/helpers contains modules that provide helper methods to be used in views.nThese helper methods can simplify the code in the view by providing reusable functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know how ruby looks up a method to invoke?
Explain Ruby if-else statement?
What does mri most commonly stand for?
What is a struct in ruby?
Mention what is the command to create a migration?
what the difference is between false and nil in Ruby?
Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?
What are the key features of ruby?
What does ruby name refers to?
Explain do while loop in ruby.
Tell me the role of modules and mixins in ruby?
mention what is the difference between a single quote and double quote?