일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 単語
- 인프런
- 日本語
- CSS
- Flutter
- html
- 디지몬
- rails7
- rails
- C로 시작하는 컴퓨터 프로그래밍4판
- javascript
- 반다이몰
- nico
- 건담베이스
- Spring
- jsp
- 一日一つメソッド
- 자바
- java
- vscode
- DART
- Web
- Python
- 건담
- 비즈니스일본어
- ruby
- 일본어
- 연습문제
- springboot
- メソッド
Archives
- Today
- Total
목록indexAction (1)
AR삽질러

初めてのRuby on Rails ミニQ&Aサイト開発 - indexAction(3) 1. indexアクションでユーザーの一覧を表紙する questions_controller class QuestionsController < ApplicationController # 質問一覧表紙 def index @questions = Question.all # p @questions end end - indexアクションに 's'がつく理由は、Ruby on Railsで広く使われる慣例(convention)のためです。 RailsはMVC(Model-View-Controller)パターンに従い、各コンポーネントの名前と使用方法がこの慣例によって決まります。 - 's'が複種系を表して、 'Question'オブジェクトが含まれていることを意味する。 @q..
Ruby/RubyOnRails-日本語
2024. 1. 4. 12:38