Skip to content

「法人利用」の文言を「企業研修代行」や他の文言に置き換える#8775

Merged
komagata merged 8 commits intomainfrom
feature/change-the-wording-corporate-use
Jul 5, 2025
Merged

「法人利用」の文言を「企業研修代行」や他の文言に置き換える#8775
komagata merged 8 commits intomainfrom
feature/change-the-wording-corporate-use

Conversation

@tyrrell-IH
Copy link
Copy Markdown
Contributor

@tyrrell-IH tyrrell-IH commented Jun 12, 2025

Issue

概要

bootcampアプリ内で使用されている「法人利用」という文言を「企業研修代行」に修正しました。

修正した後の文章は、町田さんによるチェックの後、文章を調整するための修正が加えられています。

経緯

変更確認方法

1. feature/change-the-wording-corporate-useをローカルに取り込み、当該ブランチに切り替える。

  • ブランチ取り込み
git fetch origin feature/change-the-wording-corporate-use
  • ブランチ切り替え
git checkout feature/change-the-wording-corporate-use

2. セットアップ

bin/setup

3. fixtureの読み込み(当該PRにはfixturesファイルの修正があります)

bin/rails db:seed

4. ローカルでサーバーを起動する

foreman start -f Procfile.dev

5. 修正された項目の確認

以下に修正した箇所のURLと修正前後を比較したスクショを貼っています。
そちらを参考に開発用bootcampアプリ内で適切に文言の修正がなされているか確認してください。

1. /training

http://localhost:3000/training

スクリーンショット

header部分

修正前

Image

修正後

Image

メニューバー

修正前

Image

修正後

Image

imgタグalt属性

修正前

Image

修正後

Image

文章1

修正前

Image

修正後

_development__企業研修代行___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

文章2

修正前

法人利用___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

修正後

_development__企業研修代行___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

文章3

修正前

Image

修正後

_development__企業研修代行___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

文章4

修正前

Image

修正後

Cursor_と__development__企業研修代行___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

2. /(welcome)

http://localhost:3000/ 以下の変更箇所

スクリーンショット

修正前

Image

修正後

_development__プログラミングスクール_FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

3. /pricing

http://localhost:3000/pricing 以下の変更箇所

スクリーンショット

修正前

Image

修正後

_development__料金___FJORD_BOOT_CAMP(フィヨルドブートキャンプ)

4. fixturesファイル

faq_categoriesテーブルのname属性に「法人利用」という文言が使われていたのでその点を修正。

内部的な修正なのでスクリーンショットなし。
commit: 9d32968

5. テスト

/training以下に研修利用という文言がなくなったために通らなくなったテストを修正しました。

内部的な修正のためスクリーンショットなし。
commit: 229dd90

Summary by CodeRabbit

  • 新機能

    • なし
  • バグ修正

    • なし
  • ドキュメント

    • なし
  • リファクタ

    • なし
  • スタイル

    • なし
  • テスト

    • 「法人利用」から「企業研修代行」への表記変更に伴い、該当ページのテスト内容・期待値を更新しました。
  • その他

    • サイト内の「法人利用」を「企業研修代行」へ表記統一し、関連する説明文やFAQもあわせて文言を調整しました。
    • 料金や利用条件の日本語表現をより明確に修正しました。

@tyrrell-IH tyrrell-IH self-assigned this Jun 13, 2025
@tyrrell-IH
Copy link
Copy Markdown
Contributor Author

@machida

遅くなりましたが、文言修正のPR作成しました。
文章の調整をしていただきたいので、お手隙の際に確認お願いします🙏

参考: #8754 (comment)

@machida machida force-pushed the feature/change-the-wording-corporate-use branch from ebb2473 to be7e3dd Compare June 27, 2025 07:14
@machida
Copy link
Copy Markdown
Member

machida commented Jun 27, 2025

@tyrrell-IH おまたせしてすいません!全体の文言を調整しました。これでレビューへお願いします。

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 27, 2025

## Walkthrough

「法人利用」という表現を「企業研修代行」に統一するため、コントローラ、ビューファイル、FAQデータ、テストなどの文言やカテゴリ名が変更されました。FAQ取得処理はカテゴリ未存在時にも安全に動作するよう修正されています。

## Changes

| ファイル・グループ                       | 変更概要                                                                                   |
|------------------------------------------|--------------------------------------------------------------------------------------------|
| app/controllers/welcome_controller.rb    | FAQカテゴリ名を「法人利用について」から「企業研修代行について」へ変更、FAQ取得処理を安全化         |
| app/views/layouts/lp/_lp_header.html.slim<br>app/views/welcome/_conditions.html.slim<br>app/views/welcome/pricing.html.slim<br>app/views/welcome/training.html.slim | ナビゲーションや各種説明文の「法人利用」を「企業研修代行」など新表現に統一                      |
| db/fixtures/faq_categories.yml<br>test/fixtures/faq_categories.yml | FAQカテゴリ名を「企業研修代行について」に変更                                                 |
| db/fixtures/faqs.yml                     | 法人利用・料金に関するFAQの説明文・質問文を「企業研修代行」等に修正                            |
| test/system/require_login_test.rb        | '/training'ページのテスト期待値を新しいタイトル・説明文に変更                                 |
| test/system/welcome_test.rb              | '/training'ページのタイトル・メタタグのテスト期待値を新表現に変更                             |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant WelcomeController
    participant FAQCategory
    participant View

    User->>WelcomeController: /training にアクセス
    WelcomeController->>FAQCategory: find_by(name: '企業研修代行について')
    FAQCategory-->>WelcomeController: FAQCategoryインスタンス or nil
    WelcomeController->>WelcomeController: @faqs = FAQCategory&.faqs || []
    WelcomeController->>View: @faqs, 他データを渡す
    View-->>User: 企業研修代行ページを表示

Possibly related issues

Suggested reviewers

  • komagata

Poem

うさぎがぴょんと跳ねて言う、
「法人利用」から「研修代行」へ、
名前もFAQも新しく、
安全なコードで迷いなし。
みんなで学ぶ春の野原、
新しい言葉でまた一歩!
🐇✨


<!-- walkthrough_end -->
<!-- This is an auto-generated comment: all tool run failures by coderabbit.ai -->

> [!WARNING]
> There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
> 
> <details>
> <summary>🔧 RuboCop (1.75.5)</summary>
> 
> <details>
> <summary>app/controllers/welcome_controller.rb</summary>
> 
> rubocop-minitest extension supports plugin, specify `plugins: rubocop-minitest` instead of `require: rubocop-minitest` in /.rubocop.yml.
> For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html.
> rubocop-capybara extension supports plugin, specify `plugins: rubocop-capybara` instead of `require: rubocop-capybara` in /.rubocop.yml.
> For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html.
> Unable to find gem rubocop-fjord; is the gem installed? Gem::MissingSpecError
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:309:in `rescue in gem_config_path'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:293:in `gem_config_path'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:84:in `block (2 levels) in resolve_inheritance_from_gems'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:82:in `reverse_each'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:82:in `block in resolve_inheritance_from_gems'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:76:in `each_pair'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader_resolver.rb:76:in `resolve_inheritance_from_gems'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_loader.rb:66:in `load_file'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/config_store.rb:29:in `options_config='
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/cli.rb:160:in `act_on_options'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/cli.rb:47:in `block in run'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/cli.rb:81:in `profile_if_needed'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/lib/rubocop/cli.rb:43:in `run'
> /var/lib/gems/3.1.0/gems/rubocop-1.77.0/exe/rubocop:19:in `<top (required)>'
> /usr/local/bin/rubocop:25:in `load'
> /usr/local/bin/rubocop:25:in `<main>'
> 
> </details>
> 
> </details>

<!-- end of auto-generated comment: all tool run failures by coderabbit.ai -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 343c7b54091987c9b1ccf5f461189566e195f64c and 8ee55a12986eaf5e32a810ed78188fac3ef1b902.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `app/controllers/welcome_controller.rb` (2 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>

* app/controllers/welcome_controller.rb

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: build_and_test

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIkAYBkBVm0AuuUBKJUAKV0BYBkA7BkBw00AAKMAkhnjAQHlAW0tAFA9AO/lAY7lAGQjMwBCGQDW5PPzAawZAO39AWQZAbeNACQZAaIZYyAAKGxJuLzQGEgjYOYB3fApaeAwiOJSMkcX1WDjy6vqRzHp8XAW+GgpmRABKcMW0ZAcBZnUaejlIbERKCKyCj+HxgACSAAkNDAFoxYJhSOhaLR/Ih/sgkA45mYABwAdgArAAWfhYS5zfzcfCIdQrWTQuBzZjaLCeChU/4oZAEPyTaazeZzbiwKic2LbdIjUZMdkrahzP4ke6/f70S4UfDYIiwTW4QWQAT4C4MNDMbjobhTeAm8T4LB7S6HSq1OpSmVUqg0CJUdbrTZoUgYBiyZUrfjkvhoS0a3jweWQZarP0aNyw2woINebBKZDYbi0eXc/CQZjecRTIXOXDIfAAM31UatNvgdvC6wYWbWG31AAMAPS4H0YP098L9xYkLxMNij9AYej92MMEc8APSJ5XObkhMrLubZ7IBjwjYxM6QKQUeC1+AxB0HRAMfxkRA66sKM3OP0Gki1lZzM9oLWNz2LghbQgAgsi6gthgaA+LI4Tbj2tZoAEAD6NokEQKw3ogPaQNeAAeuDYP4BHwNECYvL8+bym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SeSIBoTgJ0BoQaqjm6D8sCtQAACMDAylilLBtAtYAiaAOIBYLBilDAbBLBogylRICrLBAixIAAbLWLQBawSAIESJwjiAIMpQSLK4YLS7WMawIAwAIGwQILWAIIpbQDiCQBa8pQqziCwQwHiCpYpXiAIniBa0GwIBaxG0SAm9q26/K5ADG1qza7WDiBayQESCwQq8pZGyQPGwIoa+axa068pWgAIopf60SLMMpSQDiDiFm7S2WywYWxa4GyW1tmG/a0SLQASDG6G7WAq8SESASNayq563iAwBq928ipAMa8pdGwIMSNW6a/iPqwIEqyu/O0SKmxGywQSBa0W6a/Oxa622u4KyGyQASASGgAq6q4W5wrWASCQCq1qwqwInQHiDiBGziChMqz+Aq76021m9m3EsK6K+KzUnNJKx8m60AA=== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=fjordllc/bootcamp&utm_content=8775):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@tyrrell-IH tyrrell-IH changed the title 「法人利用」の文言を「企業研修代行」に修正 「法人利用」の文言を「企業研修代行」や他の言い回しに置き換える Jun 28, 2025
@tyrrell-IH tyrrell-IH changed the title 「法人利用」の文言を「企業研修代行」や他の言い回しに置き換える 「法人利用」の文言を「企業研修代行」や他の文言に置き換える Jun 28, 2025
@tyrrell-IH tyrrell-IH marked this pull request as ready for review June 28, 2025 15:28
@tyrrell-IH
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 28, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
app/views/welcome/_conditions.html.slim (1)

14-15: 日本語の主語・対象を統一するとさらに読みやすくなります
「(法人でのご利用のみ、請求書発行に対応しています。)」 → 「※法人でのご利用のみ請求書発行に対応しています。」のように、読点を減らして注釈マークを付けると LP 上で視認性が上がります。
任意ですがご検討ください。

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8d28244 and 1c329df.

📒 Files selected for processing (10)
  • app/controllers/welcome_controller.rb (2 hunks)
  • app/views/layouts/lp/_lp_header.html.slim (1 hunks)
  • app/views/welcome/_conditions.html.slim (1 hunks)
  • app/views/welcome/pricing.html.slim (1 hunks)
  • app/views/welcome/training.html.slim (6 hunks)
  • db/fixtures/faq_categories.yml (1 hunks)
  • db/fixtures/faqs.yml (1 hunks)
  • test/fixtures/faq_categories.yml (1 hunks)
  • test/system/require_login_test.rb (1 hunks)
  • test/system/welcome_test.rb (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
app/views/welcome/training.html.slim (1)
Learnt from: tyrrell-IH
PR: fjordllc/bootcamp#8807
File: app/views/welcome/job_support.html.slim:391-392
Timestamp: 2025-06-21T22:30:20.116Z
Learning: このプロジェクトにはRailsの組み込みmarkdownヘルパが利用できないため、markdownのHTML変換には自前でヘルパを実装する必要がある。
🔇 Additional comments (14)
db/fixtures/faq_categories.yml (1)

25-27: 名称変更に伴う参照漏れを確認してください
faq_categories7name を「企業研修代行について」に変更したことで、コード側で 文字列比較 している箇所が残っていると FAQ が表示されなくなります。
定数・スコープ・テスト等に "法人利用について" がハードコードされていないか一度 grep で確認することを推奨します。

test/fixtures/faq_categories.yml (1)

37-40: テストフィクスチャも更新済み – 👍
アプリ側と同じ名称に揃えられているため、フィクスチャ読み込み時の不整合は発生しません。

db/fixtures/faqs.yml (1)

185-190: 長文回答内の改行エスケープに注意
インライン改行を含む日本語文を |- ブロックで書く場合、末尾のスペース欠落やインデント誤りで YAML パースエラーが発生しやすいです。
ローカルで rails db:fixtures:load を実行して問題なく読み込めるか必ず確認してください。

app/views/layouts/lp/_lp_header.html.slim (1)

32-35: ナビゲーションラベル変更 OK
リンク先 (training_path) はそのままで、表示文言のみ更新されていることを確認しました。ビューファイル間の整合も取れているため問題ありません。

app/views/welcome/pricing.html.slim (1)

58-58: 文言の改善が適切です

「法人でのご利用の場合は」への変更により、より丁寧で適切な表現になっています。企業向けサービスの説明として相応しい敬語表現です。

test/system/welcome_test.rb (1)

29-31: テストが新しい文言と正しく同期されています

ページタイトルとメタタグの期待値が「企業研修代行」に適切に更新されており、ビューの変更と一致しています。

test/system/require_login_test.rb (1)

73-73: テスト内容が更新されたページコンテンツと一致しています

期待値の文言が「FBCの法人向けプログラミング研修」に更新され、研修ページの新しいコンテンツと正しく対応しています。

app/views/welcome/training.html.slim (5)

2-2: ページタイトルが新しい文言体系と一致しています

「企業研修代行」への変更により、サービス内容がより明確に表現されています。


33-33: 画像のalt属性も適切に更新されています

アクセシビリティを考慮して、alt属性の文言も新しい用語に合わせて更新されています。


279-279: 社内メンター説明文の文言が改善されています

「企業研修代行他、法人でのご利用の場合は」という表現により、サービス対象がより具体的かつ丁寧に説明されています。


327-327: 料金セクションの表記が統一されています

見出しとテーブルヘッダーの文言が「法人でのご利用料金」「法人利用」に統一され、より分かりやすい表現になっています。

Also applies to: 359-359


737-737: FAQ セクションのタイトルが更新されています

「企業研修代行について」への変更により、FAQ カテゴリーとの整合性が保たれています。

app/controllers/welcome_controller.rb (2)

8-8: FAQ カテゴリー定数が新しい文言体系と一致しています

定数名の更新により、全体的な用語統一が完了しています。


36-36: FAQの取得処理が安全になりました

セーフナビゲーション演算子(&.)とフォールバック処理(|| [])の追加により、FAQカテゴリーが存在しない場合でもエラーが発生せず、空の配列が返されるようになっています。これは堅牢性の向上として優れた改善です。

Comment on lines +196 to 202
question: 法人での利用料が高いのはなぜですか
answer: |-
法人利用の料金が高い理由は2つあります。

まず、法人利用では業務時間内にFBCでの学習を行うため、一般利用者よりも多くのアウトプットが求められます。これにより、メンターのリソースがより多く必要とされるためです。
まず、企業研修代行では業務時間内にFBCでの学習を行うため、一般利用者よりも多くのアウトプットが求められます。これにより、メンターのリソースがより多く必要とされるためです。

二つ目の理由は、FBCが月額の利用料と提携企業への卒業生紹介の際に発生する紹介料によって成り立っている点です。法人利用の場合、後者の収益が立たないため、一般利用よりも高額が設定されています。
Copy link
Copy Markdown

@coderabbitai coderabbitai bot Jun 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

表記ゆれが残っています
質問文は「法人での利用料が高いのはなぜですか?」に修正されていますが、回答冒頭が依然として「法人利用の料金…」となっています。
用語を「企業研修代行」または「法人での利用」に統一してください。

-  法人利用の料金が高い理由は2つあります。
+  企業研修代行(法人利用)の料金が高い理由は2つあります。

同様に 202 行目の「法人利用の場合」も揃えると一貫性が保てます。

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
question: 法人での利用料が高いのはなぜですか?
answer: |-
法人利用の料金が高い理由は2つあります。
まず、法人利用では業務時間内にFBCでの学習を行うため、一般利用者よりも多くのアウトプットが求められます。これにより、メンターのリソースがより多く必要とされるためです。
まず、企業研修代行では業務時間内にFBCでの学習を行うため、一般利用者よりも多くのアウトプットが求められます。これにより、メンターのリソースがより多く必要とされるためです。
二つ目の理由は、FBCが月額の利用料と提携企業への卒業生紹介の際に発生する紹介料によって成り立っている点です。法人利用の場合、後者の収益が立たないため、一般利用よりも高額が設定されています。
question: 法人での利用料が高いのはなぜですか?
answer: |-
企業研修代行(法人利用)の料金が高い理由は2つあります。
まず、企業研修代行では業務時間内にFBCでの学習を行うため、一般利用者よりも多くのアウトプットが求められます。これにより、メンターのリソースがより多く必要とされるためです。
二つ目の理由は、FBCが月額の利用料と提携企業への卒業生紹介の際に発生する紹介料によって成り立っている点です。法人利用の場合、後者の収益が立たないため、一般利用よりも高額が設定されています。
🤖 Prompt for AI Agents
In db/fixtures/faqs.yml around lines 196 to 202, the terminology in the answer
is inconsistent with the question. Change all instances of "法人利用" in the answer
to match the question's term "法人での利用" or use "企業研修代行" consistently throughout.
Ensure that the phrase on line 202 "法人利用の場合" is also updated to maintain uniform
terminology for clarity and consistency.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サービス運営者の確認をとっていますので、今回はこの表記のままリリースします。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tyrrell-IH 承知いたしました。サービス運営者の確認が取れているということであれば、現在の表記で問題ありません。リリース作業を進めてください。

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jun 28, 2025

Note

Generated docstrings for this pull request at #8866

coderabbitai bot added a commit that referenced this pull request Jun 28, 2025
Docstrings generation was requested by @tyrrell-IH.

* #8775 (comment)

The following files were modified:

* `app/controllers/welcome_controller.rb`
@tyrrell-IH tyrrell-IH requested a review from riq0h June 28, 2025 15:57
@tyrrell-IH
Copy link
Copy Markdown
Contributor Author

@riq0h
よろしければレビューお願いできませんでしょうか?

Copy link
Copy Markdown
Contributor

@riq0h riq0h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認しました! OKと思われるのでApproveさせていただきます🙇

@tyrrell-IH
Copy link
Copy Markdown
Contributor Author

@riq0h
ありがとうございました!😄

@komagata
チームメンバーによるレビューが終わりましたので、レビューお願いします!


def training
@faqs = FAQCategory.find_by(name: FAQ_CATEGORY_NAME).faqs
@faqs = FAQCategory.find_by(name: FAQ_CATEGORY_NAME)&.faqs || []
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここはなぜ修正されているんでしょう?

Copy link
Copy Markdown
Contributor Author

@tyrrell-IH tyrrell-IH Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@komagata @machida

町田さん作成のcommit: fdb1259で修正された箇所なので推測にはなりますが、

  • FAQ_CATEGORY_NAMEにFAQカテゴリー登録されていない名称を入れてしまうと
  • FAQCategory.find_by(name: FAQ_CATEGORY_NAME)nilを返し、
  • nil.faqsでエラーが発生してしまう

のでそれを避けるための処理だと思います。

このPRでその修正を加えるべきではないということであれば当初の状態に戻します🙏

この修正の意図が問題ないのなら、

def training
  category = FAQCategory.find_by(name: FAQ_CATEGORY_NAME)
  @faqs = category&.faqs || FAQ.none
end

に変更したいのですが、いかがでしょうか?
一旦commitはしておきました。
commit: 8ee55a1

空の配列を返すよりFAQ.noneFAQ::ActiveRecord_Relationを返す方が、戻り値が統一できて良いのではと思いました。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tyrrell-IH なるほどです。

に変更したいのですが、いかがでしょうか?

そちらでお願いします〜

@tyrrell-IH tyrrell-IH force-pushed the feature/change-the-wording-corporate-use branch 3 times, most recently from 72a8d6f to 139866b Compare July 2, 2025 16:09
@tyrrell-IH tyrrell-IH force-pushed the feature/change-the-wording-corporate-use branch from 139866b to 343c7b5 Compare July 2, 2025 21:16
@tyrrell-IH tyrrell-IH force-pushed the feature/change-the-wording-corporate-use branch from 343c7b5 to 8ee55a1 Compare July 3, 2025 01:47
Copy link
Copy Markdown
Member

@komagata komagata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確認させて頂きました。OKです〜🙆‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants