Ruby On Rails вопросы и ответы для интервью
Question: What do Controllers task in Ruby on Rails?Answer:Once a request comes into the Rails stack, it goes to the routes table to determine which controller and action should be called. Once a controller action is determined the request is routed to the controller and it does the needed processing by connecting with the DB if needed and then it sends control to the View to render the output. So, really the flow for Rails goes somewhat like this: Customer-> Routes-> Controller -> Model(DB) -> Controller -> View -> Customer |
Сохранить для повторения
Добавьте этот элемент в закладки, отметьте как сложный или поместите в набор для повторения.
Войдите, чтобы сохранять закладки, сложные вопросы и наборы для повторения.
Самое полезное по оценкам пользователей:
- What is Ruby On Rails?
- Why Ruby on Rails?
- Explain how (almost) everything is an object in Ruby.
- What are Gems and which are some of your favorites?
- How would you declare and use a constructor in Ruby?