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 |
Does hash use “ #==” or “#eql?” To compare hash keys?
What is ruby class?
Explain about the defined operator in ruby?
Please explain what is mvc and why do we use it?
Explain the difference between nil and false in ruby?
Please explain the three levels of access control for ruby methods?
What is the use of load and require in ruby?
Tell me how do you remove nil values in array using ruby?
What is retry statement in ruby?
Tell me can you call a private method outside a ruby class using its object?
Is ruby a strongly typed or a weakly typed language?
What is the difference between #== and #eql??