일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- install
- ubuntu
- 오랜지파이
- Orange Pi 3B
- mac
- Time.znoe.now
- Ruby on Rails
- Migrate
- docket
- 주차장 시스템
- Rails
- after_update
- ruby #string #strip #split #gsub
- Java
- MySQL
- 쿠버네티스
- 도커
- Kotlin
- 이것이 자바다
- change_column_null
- with_indifferent_access
- RUBY
- 설치
- change_column
- 사용중인포트검색
- docker
- 우분투
- after_save
- Visual Studio Code
- 우분투 24
- Today
- Total
목록Back-End /Ruby On Rails (34)
중고 신입이 개발해보기..
Rails 5.2 부터 Active Storage가 지원된다. 이걸 이용해서 이미지파일을 업로드해보장.. active storage사용법 참고https://evilmartians.com/chronicles/rails-5-2-active-storage-and-beyond active admin에는 요거 보고 하면된다.https://medium.com/@maris.cilitis/using-ruby-on-rails-active-storage-image-uploads-for-active-admin-backed-resources-5638a9ca0b46 ./bin/rails active_storage:install db/migrate에 파일이 생성된다. 20190225100404_create_active_stora..
https://github.com/stevenosloan/slack-notifier https://qiita.com/michiharujp/items/9302b8075c39780c1418http://vdeep.net/rubyonrails-slack-notifier-gem 1234require 'slack-notifier' notifier = Slack::Notifier.new "WEBHOOK_URL"notifier.ping "Hello World"cs 레일즈에. 적용해보자.. #루비 #레일즈 #슬랙 #노티 #ruby #rails #slack #notifier
find find_by wherenot orderreorderselectdistinctlimitoffsetgrouphavingjoinsincludesreadonlynone pluckexists? scope default_scope count average(col)minimum(col)maximum(col)sum(col) find_by_sql update_alldestroydeletedestroy_all
add Gemfile gem 'carrierwave', '~> 1.2', '>= 1.2.1' $ ./bin/rails g uploader AvatarRunning via Spring preloader in process 46998 create app/uploaders/avatar_uploader.rb
기초적인 레일즈로 블로그를 만드는 유투브영상이다. https://youtu.be/-URZh6iL8gk 아주 간단한 블로그제작기이당 .. 사용된 Gem # Provides a better error page for Rails and other Rack apps.gem 'better_errors', '~> 2.5' # Forms made easy!gem 'simple_form', '~> 4.1' # github bulma-rails 에서 말해는 버전으로 설치.. 잘 나옴..gem "bulma-rails", "~> 0.7.2" group :development do # Guard is a command line tool to easily handle events on file system modificatio..
모델을 만들고.. t.string token를 만들었다면 class User
Rails 5 Routes : Scope VS Namespace https://devblast.com/b/rails-5-routes-scope-vs-namespace Namespace는 간단한 옵션이다. USRK경로앞에 접두사가 붙어서 네임스페이스와 같은 방식.. Scope는 좀 더 복작하지만 미세 저정이 가능하다.
#rails dot-env link : https://github.com/bkeepers/dotenv 간단한 사용법 : http://shuzo-kino.hateblo.jp/entry/2014/07/14/231644 #dot-env 다음지도를 띄울때 맵키를 노출 시키고 싶지 않을때 dotenv를 사용할수 있다. html파일에 script태크안에서 사용. https://pg-happy.jp/rails-kankyohensu.html .env DBUSER = ‘dbuser’ DBPASS = ‘dbpass’ DAUM_MAP_KEY = ‘MyDaumMayKeyaddfaddfaddfaddfaddfaddfaddfaddf’ config/database.yml username: password: _aaaa.html.erb..