How are string and symbol different?
Answer / Madhumita Lalwani
In Ruby, strings are represented by double quotes (e.g., "string"), while symbols are represented by a colon followed by an identifier (e.g., :symbol). Strings can contain multiple characters and are often used for storing text, while symbols are immutable objects that serve as identifiers for keys in hashes or constants.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the difference between redirect and render in Ruby on Rails?
Is it possible to build a 50% bespoke e-commerce platform hence having the ability to customize everything down the line? For example would it make sense to start coding an application on the Ruby on Rails framework but where the most complex/time consuming code pieces (e.g. shopping cart, etc) can be initially bolted on (hence diminishing development time and cost) having the ability to change them completely further down the line?
Difference between argument and parameter in ruby on rails ?
What is the purpose of auto_load in ruby?
How many types of associations relationships does a model have?
What is the functionality of Model views and controllers
Who developed ruby on rails?
Explain me what is the role of rails controller?
What is the symbol garbage collector?
What are rails validation used for?
What do you understand by rails migration and what it can do?
what is Cross-Site Request Forgery (CSRF) and how Rails is protected against it?