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 |
what is the syntax for Ruby collect Iterator?
Explain about methods?
What is the difference between nil and false in ruby?
Does hash use “ #==” or “#eql?” To compare hash keys?
Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?
How to open a file in Ruby?
Explain Ruby exceptions?
Tell me how can you declare a block in ruby?
What is the use of global variable $ in Ruby?
How would you freeze an object in ruby?
How to use ruby methods.
Explain some differences between ruby and python.