Articles in this series
介绍: 一个 用 ruby on rails + react_on_rails +api 输出调用+ axios + tailwind 的启动项目 基础模板 Client-Side Rendering vs. Server-Side Rendering rails Model 和...
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...
//An array holds a number of items. In this example, the array is holding things I like. things_i_like = ["books", "teat",...
// Variable Scope array = [1,2,3,4,5] array.each do |item| array2 = [] array2.push(item * 2) end puts array2 //undefined method `array2' for...
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...
A Hash stores information in the form of a key value pair. KEY VALUE yunnan kunmingsichuan ...