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...


How to use sql db or mysql db. Without defining it in the database.yml



How to use sql db or mysql db. Without defining it in the database.yml..

Answer / Rajkumar Gupta

"To connect to a SQL (or MySQL) database without defining it in the database.yml, you can use ActiveRecord::Base.establish_connection method with the appropriate configuration details."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


What is ruby class?

1 Answers  


Explain about the defined operator in ruby?

1 Answers  


Please explain what is mvc and why do we use it?

1 Answers  


Explain the difference between nil and false in ruby?

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


What is the use of load and require in ruby?

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


What is retry statement in ruby?

1 Answers  


Tell me can you call a private method outside a ruby class using its object?

1 Answers  


Is ruby a strongly typed or a weakly typed language?

1 Answers  


What is the difference between #== and #eql??

1 Answers  


Categories