Most voted "irb" questions
Ruby Interactive Shell (IRB) is a shell for Ruby programming. The program can be started from a command prompt and allows the execution of Ruby commands line by line.
Learn more…3 questions
Sort by count of
-
9
votes4
answers1446
viewsLoad file to current directory when running irb
It is possible to call irb by passing a library to be loaded as parameter (required): irb -r date But this does not work if I want to load a file in the directory where the command runs: irb -r…
-
1
votes1
answer2231
viewsHow to subtract two dates using Ruby and the Time library?
That is the code: require 'time' t = Time.parse('2016-04-18') #data de ontém t2 = Time.now #data atual t3 = t2 - t # subtração das duas variáveis(datas) acima puts Time.at(t3) #resultado da…
-
1
votes0
answers151
viewsCreate new user in the database via Rails C
Help me where the error is occurring, because I am not able to identify pq the field is not being recognized. Rails c u = User.new(email:'[email protected]', registration:192536, password:'changeme',…