Project 2
Guide Tasks
- Read Tutorial
- Complete the Exercise
Requirements
- Clone the Rails application, run:
bundle
,rails db:create
andrails db:migrate
. - Generate a
PagesController
with pageshome
,profile
, andnews
. - Map the
home
action in thePagesController
to the root path. - Customize routes for pages so they don't have
/pages/
in the URL path. - Install
Devise gem
and follow instructions from the Documentation to implement authentication.- When running the command
rails generate devise MODEL
, replaceMODEL
withAdmin
.
- When running the command
- Implement a view helper for authentication links on all pages.
Instructions
- Fork and Clone the Github repo onto your local machine, change into root directory: Repo link
- Run:
bundle install
,rails db:create
, andrails db:migrate
. - Run:
rspec
to run tests. - Implement all the requirements necessary to get the tests passing.
- After all tests are passing,
add
andcommit
your code and push it up to your remote fork. - Paste the link to your fork on this page and submit it.