I was looking through the Devise code and noticed that most of the controllers yield the resource being created. class Devise::RegistrationsController < DeviseController # ... def create build_resource(sign_up_params) resource.save yield resource if block_given? # ... This must be some sort of extendability feature but I don't really get how you would pass a block to to the controller action? Note
I'm trying to re-use an html component that i've written that provides panel styling. Something like: <div class="v-panel"> <div class="v-panel-tr"></div> <h3>Some Title</h3> <div class="v-panel-c"> .. content goes here </div> <div class="v-panel-b"><div class="v-panel-br"></div><div class="v-panel-bl"></div></div> </div> So I see that render takes a block. I figured then I could do something like
I'm trying to create an Nginx/PHP FPM setup with docker compose and am having issues with the version 3 volumes syntax/changes. My Dockerfile: FROM php:7-fpm VOLUME /var/www/html My docker-compose.yml: version: "3" services: php: build: . volumes: - ./html:/var/www/html web: image: nginx links: - php ports: - "8888:80" volumes: - php:/var/www/html - ./default.conf:/etc/nginx/conf.d/default.conf vo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く