What things we can define in the model?
Answer / Lata Singh
"In Ruby on Rails, you can define attributes (columns), associations, validations, callbacks, and scopes in a model."
| Is This Answer Correct ? | 0 Yes | 0 No |
In Ruby, it explains about the defined operator?
In how many ways items can be added in an array in Ruby?
How would you create getter and setter methods in ruby?
Explain about interpolation?
How do you handle exceptions in ruby code?
Is ruby a dying language?
What is the naming conventions for methods that return a boolean result?
What's the difference in scope for these two variables: @name and @@name?
Explain module mixins in Ruby?
Is ruby supports single inheritance/ multiple inheritance or both?
What is the use of interpolation in ruby?
Explain raise statement in Ruby?