pwoer bo's Blog

pwoer bo's Blog

Follow
homeArticlesweb devruby devbadgesnewsletter
Series

ruby on rails

Basic learn to ruby and rails

Articles in this series

ruby on rails + react_on_rails + api + axios + tailwind

Jul 3, 20211 min read 120 views

介绍: 一个 用 ruby on rails + react_on_rails +api 输出调用+ axios + tailwind 的启动项目 基础模板 Client-Side Rendering vs. Server-Side Rendering rails Model 和...

ruby on rails + react_on_rails + api + axios + tailwind

learn ruby string

Sep 1, 20212 min read 39 views

puts "I love ICE CREAM".downcase //strip method to remove extra spaces from the start and from the end of a string puts " Bobo ".strip //the...

learn ruby string

Learn Ruby Array

Sep 1, 20211 min read 48 views

//An array holds a number of items. In this example, the array is holding things I like. things_i_like = ["books", "teat",...

Learn Ruby Array

Ruby Variable

Sep 1, 20211 min read 64 views

// Variable Scope array = [1,2,3,4,5] array.each do |item| array2 = [] array2.push(item * 2) end puts array2 //undefined method `array2' for...

Ruby Variable

Ruby Range

Sep 2, 20211 min read 44 views

In Ruby, we can get the range of numbers by using (1..20). Just like an array, a range also supports each and do end. numbers = (1..20) numbers.each...

Ruby Range

ruby hash

Sep 2, 20211 min read 56 views

A Hash stores information in the form of a key value pair. KEY VALUE yunnan kunmingsichuan ...

ruby hash