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
how can you declare a block in Ruby?
How are string and symbol different?
Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me
what is the use of super function in ruby on rails?
What is the use of the super function in ruby on rails?
what is the naming convention in Rails?
Explain me the log that has to be seen to report errors in ruby rails?
Explain me what is the purpose of rjs in rails?
How can you protect filter methods in rails?
what is the role of Rails Controller?
what is the purpose of RJs in Rails?
Explain rvm in rails?
What is the Install rail package?
Explain view in rails?
Do you know what is sweeper in rails?