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
What are the three methods to install ruby on rails?
What does ruby name refer to?
How can you protect filter methods in rails?
what are benefits of using active record as opposed to raw sql queries?
What is the architecture of Model views and controllers
How you run your rails application without creating databases?
Tell me what is rails migration?
Explain dry in rails?
What do you understand by rails migration and what it can do?
Explain me what is the naming convention in rails?
what is a rails migration? Write up a short example of a simple rails migration with a table called customers, a string column called name, and a text column called description?
What are the various changes between the rails version 2 and 3?
Tell me what is the difference between the observers and callbacks in ruby on rails?
What is the purpose of auto_load in ruby?
how you can run Rails application without creating databases?