Ruby On Rails Interview Questions and Answers
Ques. How can you define a Constant in Ruby on Rails?Ans.Create a new file as shown below under: config/initializers/my_constants.rb COLORS = ['white', 'red', 'green'] |
Is it helpful?
Yes
No
Most helpful rated by users: