This a sample app designed for validating basic Ruby on Rails knowledge.
The todo_app is designed to help you to keep track of your daily todo's. A Todo instance can have attributes such as name
, description
and scheduled_for
date. However, there a few functionalities missing to provide a better user experience. Please complete the following requirements in the specified time.
-
Add an attribute to the Todos table called
scheduled_at
of type datetime. -
Add logic so that the
scheduled_at
attribute is automatically set to the current datetime when a new Todo is created and display it in the index. -
Add an ActiveRecord validation so that the
name
attribute is required. -
Add a column to the index page to show the number of times that a Todo with the same name has been scheduled before.
-
Add support for scoped indexes, both for completion status and name. A link in the index should take the user to
Completed todos
, for this you can assume that thescheduled_for
date is exactly when the todo was completed. Thename
of each Todo in the index should also work as a link that redirects the user to a filtered index of the Todos with the samename
.
-
Clone this repository
-
Run
bundle install
-
Run
rails db:migrate
-
Run
rails db:seed
-
Start the server with
rails server