Closed jelaniwoods closed 4 years ago
Looks good to me!!
@jelaniwoods Great work. I generated an account and am leaving comments here:
I'm still getting the line-ending thing (as of commit bf63ce28).
warning: CRLF will be replaced by LF in app/controllers/leader_sessions_controller.rb.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in app/controllers/leaders_controller.rb.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in app/views/leader_sessions/sign_up.html.erb.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in app/views/leaders/edit_account.html.erb.
The file will have its original line endings in your working directory
@raghubetina That's frustrating. I don't know what else is switching the line endings back, because I definitely switched them at one point.
I'll work more on that.
@jelaniwoods More great work. I left comments on this PR after generating a new account:
https://github.com/raghubetina/test-account-gen/pull/2/files
New changes look good to me!
@jelaniwoods I re-generated the same resource and made a few comments here:
@jelaniwoods Terrific work, overall. Some minor nitpicks on whitespace, etc, are here:
https://github.com/raghubetina/review_draft_generators_67/pull/1
@jelaniwoods Very nice.
@raghubetina I made the updates you suggested.
@jelaniwoods Very close! A couple more comments here:
@raghubetina I've updated the forms to match the convention of the resource
generator (label for/input ids having _box
and names being _from_query
). Also, all the .fetch
use String
s, except for the current_user
method that uses the Symbol
that was store
d in the add_cookie
action.
Resolve #65
This branch adds the
draft:account
generator.Creates:
has_secure_password
and basic validations model@current_[MODEL_NAME]
helper inapplication_controller.rb
before_action
s to force sign in from anyone using the app and load the current signed in person[MODEL_NAME]_session_controller.rb
to house all the authentication related actions[MODEL_NAME]_controller.rb
to house all CRUD actions for model that aren't authentication relatedsign_up
,sign_in
, andedit_account
actionsThis generator will add an
email
andpassword_digest
column only if if you don't pass them in.Add this to your
Gemfile
:Example usage:
Another example usage: