Explain about Dig, Float and Max?
Answer / Abhay Singh
In Ruby on Rails, Dig refers to a method used for navigating through nested hashes. It can be used recursively to access values in multi-level hashes. Float is a built-in class that represents floating point numbers. Max is a method used to find the maximum value of an array or range. For example: dig({a: {b: [1, 2, 3]}}) # returns 3, float(2.5) returns 2.5, and [1, 2, 3].max # returns 3.
| Is This Answer Correct ? | 0 Yes | 0 No |
How would you create a controller for the subject?
What are naming conventions?
What is the difference between render and redirect?
Are there any disadvantages of ruby on rails? If yes, mention them.
what is session and cookies
How you run your Rails Application without creating database ?
who developed rails?
what is the difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?
What is the symbol garbage collector?
What is the use of $ in ruby?
How do rails implement ajax?
Explain view in rails?