Closed jelaniwoods closed 4 years ago
Resolves https://github.com/firstdraft/draft_generators/issues/80
Generates the conditional so that checkboxes are properly pre-populated.
<input id="private_box" name="query_private" type="checkbox" value="1" <%= "checked" if @current_user.private %>>
To test, add
gem 'draft_generators', github: 'firstdraft/draft_generators', branch: 'jw-prepopulate-edit-checkbox-on-account'
to your Gemfile, bundle and rails g draft:account coach active:boolean name:string
bundle
rails g draft:account coach active:boolean name:string
@jelaniwoods LGTM :ship:
Resolves https://github.com/firstdraft/draft_generators/issues/80
Generates the conditional so that checkboxes are properly pre-populated.
To test, add
to your Gemfile,
bundle
andrails g draft:account coach active:boolean name:string