# 20210202(화)

## 2021-02-02

### 1. 학습 날짜

* 2020-02-02

### 2. 학습 시간

* 12:00 \~ 24:00

### 3. 학습 범위 및 주제

* appearance 뷰 구현하기

### 4. 학습 목표

* 로그인 되어 있는 유저를 사이드바에서 확인할 수 있게 만든다.

### 5. 학습 정리

* <https://simian114.gitbook.io/blog/undefined/rubyonrails/strongparameter>
* <https://simian114.gitbook.io/blog/undefined/backbonejs/url>

### 6. 상세 학습 내용

* 사이드바를 구현하면서 백본과 레일즈에 대해서 몇가지 학습을 했다.
* 백본에서는 컬렉션에 `url` 을 지정하고 해당 `url`에 `fetch`를 보낼때 쿼리와 같이 보낼 수 있는 방법에 대해 알았다.
  * `collections.fetch( data: $param({...}))` 와 같이 작성하면 된다.
  * 쿼리는 하나 이상을 보낼 수 있으며, 배열을 보낼 수도 있다.
* 레일즈에서는 쿼리로 받은 param을 가져오는 방법에 대해 학습했다.
  * 기본적으로 `params.each` 와 같은 기본 문법으로 반복을 하면서 우리가 원하는 속성에 해당하는 모델만을 가져오게 만들었따.
  * 이 과정에서 쿼리가 배열로 올 때 문제가 조금 있었는데 쿼리가 배열로 올 때는 permit 을 할 때 조금은 다른 양식을 사용해야한다.

### 7. 오늘 학습 내용에 대한 개인적인 총평

* 대부분의 시간을 회의하는데 사용했다. 회의를 진행하면 할수록 구현해야하는게 더 구체적으로 변해가는게 마음에 든다.

### 8. 다음 학습 계획

* 사이드바 액션 케이블 연결


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://simian114.gitbook.io/blog/undefined-1/diary/2021/february/20210202.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
