Não sei pq 'rails console' não dá certo. Todos os passos anteriores deram certo menos esse.
Isso é o que sai como resposta:
Loading development environment (Rails 5.1.4)
C:/Ruby24-x64/lib/ruby/site_ruby/rbreadline.rb:6135:in delete': invalid byte se
quence in UTF-8 (ArgumentError)
from C:/Ruby24-x64/lib/ruby/site_ruby/rbreadline.rb:6135:in
alloc_histo
ry_entry'
from C:/Ruby24-x64/lib/ruby/site_ruby/rbreadline.rb:6168:in add_history
'
from C:/Ruby24-x64/lib/ruby/site_ruby/readline.rb:368:in
<<'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:76:in block (
2 levels) in load_history'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:76:in
each'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:76:in block i
n load_history'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:75:in
open'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:75:in load_hi
story'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:65:in
extende
d'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:21:in `extend'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:21:in init_sa
ve_history'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:45:in
save_hi
story='
from C:/Ruby24-x64/lib/ruby/2.4.0/irb/context.rb:92:in initialize'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb.rb:412:in
new'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb.rb:412:in initialize'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb.rb:383:in
new'
from C:/Ruby24-x64/lib/ruby/2.4.0/irb.rb:383:in start'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mands/console/console_command.rb:62:in
start'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mands/console/console_command.rb:17:in start'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mands/console/console_command.rb:97:in
perform'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/command
.rb:27:in run'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/invocat
ion.rb:126:in
invoke_command'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:
in dispatch'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mand/base.rb:63:in
perform'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mand.rb:44:in invoke'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/com
mands.rb:16:in
'
from bin/rails:4:in require'
from bin/rails:4:in
'