Rails

Documentation

Incoming

Authentication

Admin frameworks

Services

Forms

Frontend gems

Database

Seeding

  • seed-fu - Advanced seed data handling for Rails, combining the best practices of several methods together.

Migrations

Concerns

DI (Dependency Injection)

Bounded contexts

Dockerfile

Basic Dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ruby:2.2.0
MAINTAINER genar@acs.li

# Install dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /myapp
WORKDIR /myapp
ADD . /myapp
RUN bundle install
RUN bin/rake db:migrate

# Publish port 3000
EXPOSE 3000

# Start rails built-in server
ENTRYPOINT rails s -p 3000 -b 0.0.0.0

Snippets

Pass query string to path methods

1
2
confirm_a3_import_company_payslip_periods_path({year: '2019'})
# Will generate /backoffice/companies/3333/payslip_periods/a3_confirm?year=2019

Testing

Controllers

Documentation

Swagger

I18n

Books

Comments

⬆︎TOP