Before we begin developing our application, we will take a cue from our previous project and build mockups for our events before we start. Again, we will use MockFlow for our purpose and build it.
Also, we will create a mockup for the event page, as shown in the following screenshot:
In this task, we will look at customizing our event views and also adding the custom before_filter
object to protect our events.
Taking a cue from the previous project, add a scaffold for events. The events schema looks as follows:
create_table "events", force: true do |t| t.string "title" t.datetime "start_date" t.datetime "end_date" t.string "location" t.text "agenda" t.text "address" t.integer "organizer_id" t.datetime "created_at" t.datetime "updated_at" end
Add devise
gem and generate authentication methods for the application.
We will have to associate the user and event; however, the trick here is we...