Ruby
The command which -a ruby will show you where Ruby is installed.
which -a rubySave user and modify
u = User.find_by(email: "<EMAIL>")
# Then run commands like below
# u.access_locked = false
# u.access_locked?DB Dump Steps
# Create DB via PgAdmin App
pg_restore --port 5432 --username logeshpaul --dbname mdr_staging --no-password --verbose /Users/logeshpaul/Downloads/
.env file DATABASE_NAME_DEVELOPMENT=mdr_staging
./bin/dev
# Alternate Method shared by Lordson
psql DB_NAME < sce_dump.sqlTime
More about Time API - Link
Changing the format of Date & Time
In case you want a custom format use Strftime
Populate projects and studies in sce
Enable / Disable Form, Codelist, etc
Enable / Disabled Editor
Clear local DB (Like prime for SCE)
Create fixtures in MDR
Run Specs
Run server in production environment
Assets
Jobs
Rake DB Drop & Prime
PKPD
Help
Rails Console
Content tag contact
Selenium Driver
Selenium Driver Config steps to test the feature/CSS styles layouts/JS features in action in Chrome browser: (This are just to see whats going in your spec)
Note: Please do not commit these configs
Add these to your application
Gemfilewithin Test group:
Run
bundle installin terminal.In
spec/rails_helper.rbComment out line 54Capybara.javascript_driver = :webkitAdd below code in
spec/rails_helper.rbline 53:
Run your individual feature spec and see them running in a new Chrome browser.
Adding Route
Checking available routes
Misc
Last updated