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
Tell me what is ruby on rails?
Explain me what is the role of rails controller?
What is bundler?
What is the difference between Render vs. Redirect_to in ruby on rails ?
What is the difference between false and nil in ruby?
How is direct different from render?
Please explain what are the positive aspects of rails?
what are benefits of using active record as opposed to raw sql queries?
Explain Get and post method?
Explain the controller in rails?
What is unit testing (in classical terms)? What is the primary technique when writing a test ?
How do rails implement ajax?
What does ruby name refer to?
Explain how does rails implement ajax?
What are the different types of association relationships that exist?