I’ve heard of one but if I look for an ERB executable I can’t see one
I am in windows, I don’t know if there is one in linux but not in windows? if perhaps the issue is different distros of ruby , I don’t know which distro I have / how to find out.
I suspect you're looking for "irb" -- Interactive Ruby.
I am in windows, I don't know if there is one in linux but not in windows?
if perhaps the issue is different distros of ruby , I don't know which
distro I have / how to find out.
I can't help with the windows part, but how did you install Ruby?
Where is the ruby executable? I would think there would be an "irb"
executable in the same directory.
Also, `ruby --version` should tell you what you have installed.
You know when you do rails generate controller abc def
you get a file def.html.erb
that’s an ERB file, an Embedded Ruby file
The contents of that file get preprocessed , such that anything outside of <%…%> gets outputted, and anything inside <%…%> gets executed and <%=…%> involves execution and a result outputted.
PHP has a similar concept… PHP though also has a PHP.EXE file that you can run a file through and get the output.