개발 38

[Smartling] For i18n.

https://www.smartling.com/ 쓰다보면 UX가 좀 혼란스러운 부분이 있고, 아직 완벽하게 완성된 서비스로 보이지는 않지만국제화를 진행하는데에 굉장히 많은 도움이 되는 서비스인 것은 사실이다. Smartling website에 있는 서비스 소개 Smartling takes the complexity, cost and time out of the translation process by providing companies with an automated, cloud-based translation management platform and comprehensive translation services. 언젠간 이런걸 만들어야 하는데 ㅋㅋㅋ

개발 2015.06.18

[git] restore deleted branch

실수로 push 하지 않은 상태에서 git branch -d XYZ라는 커맨드로 XYZ라는 branch를 삭제해버린 경우 (commit은 한 경우 ^^) branch를 다시 되살리고 싶다면 어떻게 해야 할까? 이 문제는 아주 간단하게 해결할 수 있다. git reflog 커맨드로 복구하고 싶은 branch의 HEAD commit을 찾는다. 커밋을 찾으면 90e9a80 와 같은식으로 커밋마다 고유의 [sha1] 해시넘버가 있는데, git commit -b [branch_name] [sha1] 커맨드로 쉽게 복구가능하다.

개발/git 2015.04.22

[RoR] flash message

꼼수) Controller 내에서 redirect_to를 사용하여 임의로 다른 컨트롤러로 redirection 시키는 경우현재 request 정보를 redirect 된 페이지에서 사용하고 싶을 때 다음과 같이 flash message 등으로 전달해주면 된다. (화면에 보여지는 것을 원치 않을경우 전달받을 컨트롤러의 뷰에서 해당 flash를 display:none; 해주는 것을 잊지말 것) redirect_to post_url(@post), status: 301, flash: { fullpath: request.fullpath }

개발/ROR 2015.04.02