본문 바로가기 메뉴 바로가기

기록장

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

기록장

검색하기 폼
  • 분류 전체보기 (117)
    • Architecture (1)
    • Linux (1)
    • DB (21)
    • Web (11)
    • Server (8)
    • Spring (8)
    • Java (20)
    • Ruby (3)
    • JPA (3)
    • Design Pattern (1)
    • Git (2)
    • Security (1)
    • 알고리즘 (8)
    • 개발환경 (0)
    • 도서 (8)
    • 생각 (7)
      • TIL (2)
  • 방명록

ruby (2)
ruby 소소한 tip

the simple way if check value is null object&.spouse&.name == object.spouse.name if object && object.spouse class 2, "name"=>"1"}, {"count"=>2, "hit"=>1, "name"=>"1"}, {"count"=>1, "hit"=>5, "name"=>"1"} ] # sort sorted_arr = arr.sort_by {|data| [data["count"], data["hit"]]} 결과 [{"count"=>1, "hit"=>5, "name"=>"1"}, {"count"=>2, "hit"=>1, "name"=>"1"}, {"count"=>2, "hit"=>2, "name"=>"1"}] it'..

Ruby 2023. 6. 20. 23:16
ActiveAdmin index column width 변경하는 방법

컨텐츠가 매우 옹졸하게 나와서 width를 늘리고자 했다. 방법 적용하고자 하는 컬럼에 div class 이름을 설정 index column :title do |object| div(class: "title") do span object.title end end end assets/stylesheets/active_admin.scss 에 width 설정 추가 div.title { width: 300px; } 결과

Ruby 2023. 6. 20. 22:49
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • github
TAG
  • Encoding
  • 이펙티브자바
  • 사고..
  • 이벤트스토밍
  • annotation
  • point
  • 암호화
  • ruby
  • ActiveAdmin
  • 코테 log
  • SHA
  • Lombok
  • SQL 전문가 가이드
  • TroubleShooting
  • Java
  • Spring-Boot
  • aws
  • effective-java
  • WebClient
  • 실용주의
  • 메모리 릭
  • gitignore
  • IntelliJ
  • sort algorithm
  • Git
  • ASCII
  • fetchResults
  • Generic
  • querydsl
  • DesignSystem
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바