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






2. Command to run a migration






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






4. This variable changes the environment






5. Rails' object-relational mapping library






6. to get ascii value of a character






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






8. These create namespaces






9. Converts database records to objects






10. All constants are _______






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






12. to get character from ascii value






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






14. controller (and table) names are _______






15. to declare global variables






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






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






18. the model-generator command create the model class (app/models/something.rb) and the ____________






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






20. to generate regular model code (not scaffolding)






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






22. These create namespaces






23. Naming convention for file names






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






25. All constants are _______






26. to call a partial






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






28. to generate regular model code (not scaffolding)






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






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






31. the three "magic columns" are:id - _______ - updated_at






32. to call a partial






33. expression that all layouts have






34. Rails' application framework






35. This variable changes the environment






36. tag that starts a form






37. models have only ______names






38. A search form is not associated with a ______






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






40. Converts database records to objects






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






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






43. Kinds of test you create yourself






44. Rails' application framework






45. The "format" in "repond_to do |format|"? is a ______






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






47. Naming convention for file names






48. Naming convention for classes






49. edit routes






50. Naming convention for classes