Every Ruby on Rails developer should know these questions before attend any interview as a Rails Developer.
1. what is the use of filters in rails
2. whats is the use of partials in rails
3. usage of redirect and redirect_to in rails
4. whats is REST and RESTful routes in rails
5. What is use of associations in rails
6. how many types of associations are there in rails
7. what is the use of callbacks in rails
8. when we use polymorphic associations in rails
9. how can we define roles in rails application
10. how many types of constructors are there in ruby on rails
11. what is the purpose of using attr_accesser in rails
12. what is the purpose of using devise gem and cancan in rails application
13. How can we use before_filter callback in controller
14. what is the purpose using around filter in rails
15. how to find max difference and min difference between elements in Array
16. see below array
marks1 = [ ['Sai', 43], ['Benny', 9], ['Ajay',53] ]
marks2 = ['Praveen', 87], ['Nag', 5],['Vamsi',56],['Janu', 55] ]
who has got maximum marks in above array
who has got minimum marks in above array
17. What is difference between Rails2.X, Rails3.X and Rails4.x
18. which way we use helper methods in our rails application
19. difference between blank? and empty? methods in rails
20. What is the difference between Ruby’s
Hash
and ActiveSupport’sHashWithIndifferentAccess
?21. What is the purpose of using Strong Parameters in Rails
22. What are HTTP Verbs in Rails
23. What is CSRF? How does Rails protect against it?
24. What is Active Record and what is Arel? Describe the capabilities of each.
25. What is the Convention over Configuration pattern? Provide examples of
how it is applied in Rails.
No comments:
Post a Comment