Question
The following question is relate to the given CAF scenario below. (You are not required to create a Rails application.) Scenario CAFE: Coffee And Food
The following question is relate to the given CAF scenario below. (You are not required to create a Rails application.)
Scenario CAFE: Coffee And Food Emporium
You are tasked with developing a web application for a self-service menu and order system for a cafe. The web application will be accessible from tablet devices embedded into the caf tables. To use the system, a customer must register first storing their title, first name, surname and date of birth. The system allows customers to create an order with an associated table number (between 1 and 25), the ordered food and drink items and a variable stating whether the order is open or closed. A customer may make several orders over different visits but each order is associated with one customer only. The system also allows customers to browse menu items which have an item name, an item type (starter, main, side, drink), a free text description of the item of up to 255 characters, an image of the item (stored as a URL to the image) and a price.
Question 1)
Given your recommendation, the decision is made to use the Rails Framework. You create the application on the command line by running rails new Cafe and must now create all of the MVC components required for the application (the customer component will be created through standard Rails command line commands, not through Devise). Provide the lines of code on the Linux command line to create all components with appropriate attributes. (code or command lines are required for this answer)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started