Cuộc sống Nhật Bản
Yuto Blog

Rails

Displaying 6 items
Cách học để đậu chứng chỉ Ruby Gold trong một tháng

Cách học để đậu chứng chỉ Ruby Gold trong một tháng

Cách học để đậu chứng chỉ Ruby Gold. Cách thi đậu chứng chỉ Ruby Vàng trong 1 tháng. Cách đăng ký kỳ thi Ruby Association Certified Ruby Programmer Gold. Thi Ruby Vàng ở Nhật. Chứng chỉ Ruby Vàng
Updated at 2023-10-29

Ruby on Rails 7 search selectbox with select2 and stimulus

Ruby on Rails 7 search selectbox with select2 and stimulus
Updated at 2023-05-09
Cách học để đậu chứng chỉ Ruby Silver trong một tháng

Cách học để đậu chứng chỉ Ruby Silver trong một tháng

Cách học để đậu chứng chỉ Ruby Silver. Cách thi đậu chứng chỉ Ruby Bạc trong 1 tháng. Cách đăng ký kỳ thi Ruby Association Certified Ruby Programmer Silver. Thi Ruby Bạc ở Nhật. Chứng chỉ Ruby Bạc
Updated at 2023-05-09
【 Ruby on Rails】Hướng dẫn sử dụng ActiveStorage để upload hình ảnh

【 Ruby on Rails】Hướng dẫn sử dụng ActiveStorage để upload hình ảnh

Cài đặt ActiveStoragerails active_storage:installrake db:migrate Gemfilegem "image_processing" app/models/article.rbhas_one_attached :image app/controllers/articles_controller.rbdef article_params params.require(:article).permit(:image) end app/views/articles/_form.html.slim= f.label :image = f.file_field :image, accept: "image/png, image/jpg, image/jpeg, image/gif" app/views/articles/show.html.slim- if @article.image.attached? = image_tag @article.image.variant(resize: "640x480^",...
Updated at 2023-05-09
【 Ruby on Rails】Hướng dẫn sử dụng ActionText

【 Ruby on Rails】Hướng dẫn sử dụng ActionText

Cài đặt ActionTextrails action_text:installrake db:migrate Không cần phải có column "content" trong table articlesapp/models/article.rbhas_rich_text :content validates :content, presence: true, length: { minimum: 5 } app/controllers/articles_controller.rbdef article_params params.require(:article).permit(:content) end app/views/articles/_form.html.slim= f.label :content = f.rich_text_area :content app/views/articles/show.html.slim== @article.contentCustomize...
Updated at 2023-05-09
【Ruby on Rails】Hướng dẫn làm chức năng sort với jquery-ui sortable

【Ruby on Rails】Hướng dẫn làm chức năng sort với jquery-ui sortable

Cài đặt jQuery và jQuery-ui yarn add popper.js jquery jquery-ui ```javascript:config/webpack/environment.js const { environment } = require('@rails/webpacker') // Add const webpack = require('webpack') environment.plugins.append( 'Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', Popper: ['popper.js', 'default'] }) ) // Add module.exports =...
Updated at 2023-05-09