RailsTutorial学習#2 第2章 Toyアプリケーション
第2章 Toyアプリケーション 第2章Toyアプリケーション 2.1 アプリケーションの計画 $ cd ~/environment $ rails _5.1.6_ new toy_app $ c...
35 search resultsShowing 1~20 results
第2章 Toyアプリケーション 第2章Toyアプリケーション 2.1 アプリケーションの計画 $ cd ~/environment $ rails _5.1.6_ new toy_app $ c...
Railsの学習記録をQiitaに残し、備忘録とする。 第1章ゼロからデプロイまで 第2章Toyアプリケーション 第3章ほぼ静的なページの作成 第4章Rails風味のRuby 第5章レイアウトを...
●参考記事 https://freesoft.tvbok.com/win10/access_uefi_bios_setup.html Win10スタートボタン→設定→更新とセキュリティ 回復→今...
irb def sayhi puts "hello" end sayhi num = 123 puts 123
useful_tools.rb module Tools def sayhi(name) puts "hello #{name}" end def saybye(name) puts "bye ...
class Chef def make_chicken puts "The chef makes chicken" end def make_salad puts "The chef makes...
class Question attr_acessor :prompt, :answer def initialize(prompt, answer) @prompt = prompt @ans...
class student attr_accessor :name, :major, :gpa def initalize(name,major,gpa) @name = name @major...
class Book attr_accessor :title, :author, :pages def initialize(title, author, pages) @title = ti...
class Book attr_accessor :title, :author, :pages end book1 Book.new() book1.title = "Harry Potter...
lucky_nums = [4,8,15,16,23.42] lucky_nums["dog"] into Integer(Typeerror) begin num = 10 / 0 rescu...
Jim, Sales Andy, Sales Kelly, Customer Service Creed, Quality Assurance Michaes, Manager stack ov...
employees.txt Jim, Sales Andy, Sales Kelly, Customer Service Creed, Quality Assurance Michaes, Ma...
シャープで書いた後ろがコメントになる。 sadsadadsdadada puts "Comments are fun" =begin afdafsfs asfsdfsf =end
def pow(base_num, pow_num) result = 1 pow_num.times do |index| result = result * base_num end ret...
friends =["Kevin","Karen","Oscar","Angela","Andy"] for friend in friends puts friend end Kevin Ka...
secret_word = "giraffe" guess ="" while guess != secret_word puts "Enter guess: " guess = gets.ch...
index = 1 while index <= 5 puts index index += 1 end 1 2 3 4 5
def get_day_name(day) day_name = "" case day when "mon" day_name = "Monday" when "tue" day_name =...
puts "Enter first number: " num1 = gets.chomp().to_f puts "Enter operator: " op = gets.chomp() pu...
35 search resultsShowing 1~20 results
Qiita is a knowledge sharing service for engineers.