Answer Posted / surekha matte
Rails makes extensive use of symbols. A symbol looks like a
variable symbols name, but it’s prefixed with a colon.
Examples of symbols include :action,:line_items, and :id.
Rails uses symbols to identify things. In particular, it
uses them as keys when naming method parameters and looking
things up in hashes. For example:
redirect_to :action => "edit", :id => params[:id]
Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
Difference between gem and plugin?
what are the positive aspects of Rails?
Choosing between belongs_to and has_one?
What is the purpose of load, auto_load, and require_relative in ruby ?
What is object-relationship-model (orm)?
Explain Get and post method?
What is the role of mvc architecture in ruby on rails?
How do rails implement ajax?
Which command is used to create a migration?
Explain model in rails?
Explain valid and invalid in rails?
What do you mean by render and redirect_to?
What are the various changes between the rails version 2 and 3?
difference between member routes and collection routes ?
Tell me what is rails active record in ruby on rails?