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 is the model view controller framework used in ruby on rails?
Explain the role of sub directory app/controllers and app/helpers.
how you can list all routes for an application?
what is the purpose of RJs 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 is Mixin in Rails?
what is Cross-Site Request Forgery (CSRF) and how Rails is protected against it?
What is a ruby singleton method ?
Explain coc in rails?
What is the difference between concern and application_controller.rb in ruby on rails?
Is ruby on rails dying?
what is rake in Rails?
Choosing between belongs_to and has_one?
What are the different types of association relationships that exist?
what is active record?