Pry Pry – an IRB alternative and runtime developer console [Official] リポジトリ pry/pry: An IRB alternative […]
カテゴリー:Ruby on Rails
respond_to の使い方 [Rails]
respond_to class UsersController < ApplicationController def show @user = User.find(params[:id]) respond_to […]
知っておくと便利なメソッド [Rails]
知っておくと便利なメソッド tap yield_self increment! decrement! all? one? any? none? many? 意外と知らないかもしれない Ruby, Rails のメソッドと […]
Config gem の使い方 [Rails]
Config gem railsconfig/config: Easiest way to add multi-environment yaml settings to Rails, Sinatra, Pandrino […]
コーディングスタイル/命名規則 [Rails]
コーディングスタイル/命名規則 コーディング規約をまとめてみた Rails 編 | bojovs::blog Rails における命名規則 – Qiita Ruby コーディング規約 | shugo.net […]
Foreman [Rails]
Foreman ddollar/foreman: Manage Procfile-based applications – GitHub ドキュメント Introducing Foreman | David […]
form_with [Rails]
form_with form_with – ActionView::Helpers::FormHelper | Ruby on Rails API [Official] 使い方 URL を指定する例 < […]
コールバック (Callbacks) [Rails]
コールバック Active Record コールバック | Rails ガイド [公式] ActiveRecord::Callbacks ActiveRecord::Callbacks | Ruby on Rails A […]
Rack の使い方 [Ruby/Rails]
Rack Rack – a Ruby Webserver Interface [Official] rack/rack: a modular Ruby webserver interface – […]
HTML のサニタイズ [Rails]
HTML のサニタイズ ActionView::Helpers::SanitizeHelper.sanitize <%= sanitize @comment.body %> <%= sanitize @ […]