Test your basic knowledge |

Ruby On Rails Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. the three "magic columns" are:id - _______ - updated_at






2. Rails' application framework






3. Unlike regular erb files partials' names begin with an ________






4. a RESTful application uses ... to define an interaction with the data.






5. These create namespaces






6. Kinds of test you create yourself






7. h in in <%=h ... %> is a ______ that escapes special characters to sanitize malicious input






8. Methods by default are ________






9. to create a migration that adds a "phone" field to the "tickets" table






10. Allows instance variables to be accessible outside the class by defining = operators for variables






11. All constants are _______






12. controller (and table) names are _______






13. to get character from ascii value






14. Default Rails environments: development - test - ________






15. to call a partial






16. A search form is not associated with a ______






17. You add the filter code right after the line introducing __________ in the controller






18. to run the latest migrations






19. to destroy a row with id of 2 using only one line...






20. Rails' object-relational mapping library






21. to run the latest migrations






22. Long form of "rake" which can do more complex things like modifying the database structure and running testsis






23. A special class whose only job is to have attributes and to hold data






24. to get ascii value of a character






25. to specify a format like html or xml in routes.rb






26. This is a comparison operator






27. a RESTful application uses ... to define an interaction with the data.






28. Embedded Ruby (ERb) processes data from model objects AND _______ as inputs






29. All constants are _______






30. to add an error (called "there was an error") in the validate method






31. This method name indicates to rails that it should validate before saving/updating






32. Converts database records to objects






33. This method name indicates to rails that it should validate before saving/updating






34. expression that all layouts have






35. to create a migration that adds a "phone" field to the "tickets" table






36. A search form is not associated with a ______






37. The three kinds of tests are: unit and functional and _________ tests






38. to include a module inside another class/file






39. These create namespaces






40. to generate regular model code (not scaffolding)






41. Rails' application framework






42. Command to run a migration






43. tag that starts a form






44. to add an error (called "there was an error") in the validate method






45. express error messages in a form (do |f|)






46. to insert "1 + 1" into a string






47. This variable changes the environment






48. Before it saves or updates data a model object _______






49. It generates web pages from page templates






50. Methods by default are ________