Ruby on Rails Developer Question: Download Questions PDF
Tell us what are benefits of using Active Record as opposed to raw SQL queries?
![Ruby on Rails Developer Interview Answer Ruby on Rails Developer Interview Question](https://globalguideline.com/public/images/interview/32.png)
Answer:
Here are the benefits:
☛ it’s really easy to go wrong during writing SQL queries
☛ each different type of database usually has a slightly different flavour of SQL, so it could be really painful if, during work on a big app, you decide to switch to a different database
☛ using Active Record reduces code significantly and makes it easier to read
☛ using Active Record makes common operations simpler and easier than writing your own SQL statements
☛ it’s really easy to go wrong during writing SQL queries
☛ each different type of database usually has a slightly different flavour of SQL, so it could be really painful if, during work on a big app, you decide to switch to a different database
☛ using Active Record reduces code significantly and makes it easier to read
☛ using Active Record makes common operations simpler and easier than writing your own SQL statements
Download Ruby on Rails Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me what is Testing in Rails? | Tell us what’s the difference between new, save and create? |