命名規約外のモデル名・テーブル名を使う方法 Railsで規約に従わないテーブル名を使う – ゆとRubyist日記 Railsで既存のテーブルをModelとして使用する – Qiita Rails […]
カテゴリー:Ruby on Rails
Devise / OmniAuth のソース [Rails]
リポジトリ plataformatec/devise: Flexible authentication solution for Rails with Warden – GitHub wardencommun […]
ActiveDecorator [Rails]
ActiveDecorator amatsuda/active_decorator: ORM agnostic truly Object-Oriented view helper for Rails 3, 4 and 5 […]
Basic 認証の使い方 [Rails]
Basic 認証の使い方 コントローラで before_action を設定して、authenticate_or_request_with_http_basic メソッドを使う。 class ApplicationCon […]
ActionMailer の使い方 [Rails]
ActionMailer Action Mailer の基礎 | Rails ガイド [公式] ActionMailer::Base | Ruby on Rails API [Official] 使い方 Action M […]
開発環境/本番環境 (development / production) [Rails]
環境 env – Rails | Ruby on Rails API [Official] 使い方 アプリケーション内から環境を確認する。 開発環境でのみ有効にする。 本番環境でのみ有効にする。 環境の指定と […]
web-console のソース [Rails]
web-console rails/web-console: Rails Console on the Browser – GitHub ドキュメント Documentation for web-consol […]
リンクを生成する方法 (link_to) [Rails]
link_to リンクを生成する。 link_to(body, url, html_options = {}) # url is a String; you can use URL helpers like posts_ […]
Pry の使い方 [Rails]
Pry Pry – an IRB alternative and runtime developer console [Official] リポジトリ pry/pry: An IRB alternative […]
知っておくと便利なメソッド [Rails]
知っておくと便利なメソッド tap yield_self increment! decrement! all? one? any? none? many? 意外と知らないかもしれない Ruby, Rails のメソッドと […]