respond_to class UsersController < ApplicationController def show @user = User.find(params[:id]) respond_to […]
カテゴリー:Ruby on Rails
知っておくと便利なメソッド [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 […]
Ruby on Rails [Introduction]
Ruby on Rails Ruby on Rails [Official] 導入 Rails をはじめよう | Rails ガイド [公式] Getting Started with Rails | Ruby on R […]
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 @ […]