Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Whats the difference between symbol and string?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between concern and application_controller.rb in ruby on rails?

879


when self.up and self.down method is used?

973


Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me

2294


Explain dry in rails?

916


What are the different filters used in ruby on rails?

805


what is sweeper in Rails?

960


What is the difference between false and nil in ruby?

927


What is agile development? What are the strengths?

923


What is Dynamic finders ?

976


How to find second max element from database ?

937


Which command is used to create a migration?

965


In how many ways you can create rails layout http response.

912


Can you explain me how rails implements ajax?

868


What are the various changes between the rails version 2 and 3?

879


What is active record in rails?

1041