Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StaverDmitry/de15f17655211c63a5f99d3ba17a1f05 to your computer and use it in GitHub Desktop.
Save StaverDmitry/de15f17655211c63a5f99d3ba17a1f05 to your computer and use it in GitHub Desktop.
3) Backend plan
- Add new fields for 'Feedback': crew, meals, cleanliness, representatives, booking_experience, suggestions, other.
Serialize these fields.
? - Add new model 'Excursion'( name, rating, cruise_id, direction_id )
- Add new user type 'StaffMember'( first_name, last_name, email, boat_id )
- When logged in it should be redirected to the feedback form with combination of his boat and the nearest departure time for it.
? - Should we bind a 'StaffMember' to a tour?
- Partial which accepts an array of hashes as a collection
- Hold the hash structure in yml file
The array structure is something like:
[ meals:
{ breakfast_bool: { caption: 'Did you have breakfast?', type: :boolean },
breakfast: { caption: "Breakfast", type: :range },
lunch: { caption: "Lunch", type: :range },
.....}
]
The sections names should be the same as the 'Feedback' fields names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment