Go to Real Cool Heading section
0
1
2
A gem selection from the Gitlab Gemfile, gems that could be adequate for your project (source : https://github.com/gitlabhq/gitlabhq)
browser
https://github.com/fnando/browserDo some browser detection with Ruby. Includes ActionController integration.
device_detector
# | |
# Tu joues une partie de cartes et durant la partie, tu peux soit gagner 1 point, soit gagner 2 points par manche. | |
# Le but étant d’arriver à 26 points. | |
# Quelles sont les différentes combinaisons de points possibles durant le jeu afin d’arriver à 26 points ? | |
# Exemple pour un total de 3 points, il y a 3 combinaisons : 1/1/1 – 2/1 – 1/2 | |
# | |
possible_combinations = [] | |
possible_play = [1, 2] | |
range_of_games_played = 13..26 |
Are you doing a array of hashes ? They merge. :/
Unless you as: :json
on the test post
post api_v1_stuff, params: params, as: :json
# classique circle_ci rails test config file | |
version: 2 | |
jobs: | |
build: | |
environment: | |
working_directory: ~/circleci-myapp | |
docker: | |
- image: circleci/ruby:2.5.5-node-browsers | |
steps: | |
- checkout |
🇺🇸
:en:
class User < ActiveRecord::Base
def do_something!
self.my_attr = 123
end
def do_another_thing!
my_attr = 456
end
docker stop $(docker ps -a -q) #stop all docker container |