link_to リンクを生成する。 link_to(body, url, html_options = {}) # url is a String; you can use URL helpers like posts_ […]
カテゴリー:Ruby on Rails
ActionMailer の使い方 [Rails]
ActionMailer Action Mailer の基礎 | Rails ガイド [公式] ActionMailer::Base | Ruby on Rails API [Official] 使い方 Action M […]
ActiveSupport::Dependencies [Rails]
ActiveSupport::Dependencies ActiveSupport::Dependencies | Ruby on Rails [Official] rails/dependencies.rb at 5- […]
respond_to の使い方 [Rails]
respond_to class UsersController < ApplicationController def show @user = User.find(params[:id]) respond_to […]
Devise / OmniAuth のソース [Rails]
リポジトリ plataformatec/devise: Flexible authentication solution for Rails with Warden – GitHub wardencommun […]
知っておくと便利なメソッド [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 […]
開発環境/本番環境 (development / production) [Rails]
環境 env – Rails | Ruby on Rails API [Official] 使い方 アプリケーション内から環境を確認する。 開発環境でのみ有効にする。 本番環境でのみ有効にする。 環境の指定と […]
form_with [Rails]
form_with form_with – ActionView::Helpers::FormHelper | Ruby on Rails API [Official] 使い方 URL を指定する例 < […]
Foreman [Rails]
Foreman ddollar/foreman: Manage Procfile-based applications – GitHub ドキュメント Introducing Foreman | David […]