Answer the question
In order to leave comments, you need to log in
Is it possible to run the program on the site?
I'm new to Ruby, now it's time to get familiar with rails and I have a question. Is it possible to Run on the Rails engine, what we run through the terminal (.rb)?
Let's say this file. And if so, how? (where to put it in the app/assets folder?)
test.rb
require 'rubygems'
i = 0
num = 5
until $i > $num do
puts "Hello World!"
$i +=1
end
Answer the question
In order to leave comments, you need to log in
Wait a while with Ruby on Rails. In my experience it is quite difficult for beginners. It would be easier to start with the Sinatra framework
require 'sinatra'
get '/' do # Путь '/' означает корневой путь в URL.
"Hello World!"
end
ruby hello.rb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question