📘 hkob-astro-notion-blog

これまではてなブログにて情報発信をしていましたが、令和5年3月22日より、こちらでの情報発信を始めました。2019年以前の古い記事は過去の Middleman 時代のものなので、情報が古いです。記録のためだけに残しています。

8/9

spec template の設置と Kurasu モデルの作成 - 不定期刊 Rails App を作る(14)

「不定期刊 Rails App を作る(14)」では、RSpec と FactoryBot を使ったモデルのテストについて説明しています。具体的には、spec ファイルのテンプレートの設置や Kurasu モデルの作成方法などを解説しています。記事の最後には、Middleman 時代に書かれた記事であることを示す注意書きがあります。 (by Notion AI)

FactoryBot とRSpec によるテスト(2) - 不定期刊 Rails App を作る(13)

This blog post discusses using FactoryBot and RSpec to test a Rails app, with a focus on the Teacher model. It includes a sample test file, code snippets, and explanations of the testing process. Please note that this post was written in the Middleman era and is for reference only. (by Notion AI)

FactoryBot とRSpec によるテスト(1) - 不定期刊 Rails App を作る(12)

この記事では、FactoryBotとRSpecを使ってモデルのテストを簡単にする方法について紹介しています。また、key based FactoryBotの設定方法や共通exampleの作成方法についても詳しく説明しています。この記事は、2018年11月20日に投稿され、ImageExportedがYes、TagsがFactoryBot、RSpec、Railsであることがわかります。(by Notion AI)

devise の日本語化 - 不定期刊 Rails App を作る(11)

post-featured-image

This blog post discusses how to localize the devise gem for a Rails application. The post provides step-by-step instructions for translating messages, models, and views into Japanese, as well as the benefits of using locale files for translations. Please note that this is an older post and may not be entirely up-to-date. (by Notion AI)

devise の設定(2) - 不定期刊 Rails App を作る(10)

post-featured-image

This blog post discusses the implementation of a user authentication system using devise in a Rails application. It covers the modification of views to include additional fields, the registration of strong parameters, and the installation of rails-ujs to enable Javascript functionality. Please note that this is an older post and may not be entirely relevant. (by Notion AI)

devise の設定(1) - 不定期刊 Rails App を作る(9)

この記事は、Railsアプリを作成するためのプロセスの一部として、deviseを使用してログイン機能を実装する方法について説明しています。記事は古く、Middleman時代に書かれたものですが、記録のためにastro-notion-blogに移行されました。 (by Notion AI)

YARD の設定 - 不定期刊 Rails App を作る(8)

post-featured-image

この記事では、RailsアプリケーションにおけるYARDの設定方法について説明しています。YARDを使うことで、メソッドのドキュメントを自動生成することができます。また、YARDを使ったドキュメントの見方についても紹介しています。(by Notion AI)

Guard の設定 - 不定期刊 Rails App を作る(7)

Guard を使った RSpec の自動テスト実行について解説しています。Guard を設定することで、ファイルを保存するたびに自動的にテストが実行されるようになります。詳しい手順や設定方法を紹介しています。(by Notion AI)

RSpec の設定 - 不定期刊 Rails App を作る(6)

This article covers the setup of RSpec, a behavior-driven development system for Ruby. It includes instructions for installation and writing tests. Please note that this is an older article, written during the Middleman era, and some of the information may be outdated. (by Notion AI)

haml への変換 - 不定期刊 Rails App を作る(5)

この記事では、Railsでhamlを使う方法について紹介しています。hamlはHTMLのプリプロセッサで、HTMLに比べて記述が簡単でメンテナンスがしやすいため、よく使われています。まずはGemfileにhamlを追加し、bundleでインストールします。その後、haml-railsに含まれる機能を使って、erb形式のファイルをhaml形式に変換します。この記事を参考に、hamlを使って開発を進めることができます。(by Notion AI)