ERB not working

The erb command is not working properly for me on ubuntu terminal
I type erb and nothing happens
but sometimes the command do work
If I turn on the computer and try the command and it happens to work, ok
no problem it will work all day long
but it is the same if the command does not work it will not work that
day.
have anyone had the same problem I do?

If I am posting in the wrong forum let me know and I will correct the
posting
but I swear I could not find anything on google, not even about the erb
command.

On Apr 28, 2013, at 3:33 PM, Rafael M. [email protected] wrote:

The erb command is not working properly for me on ubuntu terminal
I type erb and nothing happens
but sometimes the command do work
If I turn on the computer and try the command and it happens to work, ok
no problem it will work all day long
but it is the same if the command does not work it will not work that
day.

How about the nights? :wink:

have anyone had the same problem I do?

Never.

If I am posting in the wrong forum let me know and I will correct the
posting
but I swear I could not find anything on google, not even about the erb
command.

How do you suppose people could help you without providing an exact
description of what did not work for you? Like the command line you used
and the input to ERB you were trying to process.

Gennady.

Hi,

I type erb and nothing happens

  • what do you mean by nothing happens? The screen get frozen? Do you get
    an error message? can you show a screenshot of the problem?

Em 28/04/2013, s 19:33, “Rafael M.” [email protected] escreveu:

Amalrik Maia wrote in post #1107152:

Hi,

I type erb and nothing happens

  • what do you mean by nothing happens? The screen get frozen? Do you get
    an error message? can you show a screenshot of the problem?

Em 28/04/2013, s 19:33, “Rafael M.” [email protected] escreveu:

I am sorry about the poor description
when the command runs the terminal prints the line number
something like <001>
but when it does not run properly it shows nothing

I attached I picture of the problem

On Sun, Apr 28, 2013 at 4:42 PM, Rafael M. [email protected] wrote:

I am sorry about the poor description
when the command runs the terminal prints the line number
something like <001>
but when it does not run properly it shows nothing

SMH - you are apparently confusing ‘erb’ and ‘irb’, two very different
programs with very different purposes.

What exactly are you trying to do?

good catch.

:slight_smile:

Em 28/04/2013, s 21:11, Hassan S. [email protected]
escreveu:

what ruby version are you using?
Can you show step by step how did you got ruby installed?

Em 28/04/2013, s 20:42, “Rafael M.” [email protected] escreveu:

Alright that was very silly of my part and I am ashamed about it
I wanted the irb command
ok problem solved thank you very much gentlemen.

irb

irb(main):001:0> def apologize(who)
irb(main):002:0> who + " apologies for wasting the time of yours."
irb(main):003:0> end
=> nil
irb(main):004:0> people_to_apologize = [‘Gennady B.’, ‘Amalrik
Maia’, ‘Hassan S.’]
=> [“Gennady B.”, “Amalrik Maia”, “Hassan S.”]
irb(main):005:0> people_to_apologize.each do |gentleman|
irb(main):006:1* puts apologize(gentleman)
irb(main):007:1> end
Gennady B. apologies for wasting the time of yours.
Amalrik Maia apologies for wasting the time of yours.
Hassan S. apologies for wasting the time of yours.
=> [“Gennady B.”, “Amalrik Maia”, “Hassan S.”]
irb(main):008:0>

On Apr 29, 2013, at 7:21 AM, Rafael M. [email protected] wrote:

Maia’, ‘Hassan S.’]
=> [“Gennady B.”, “Amalrik Maia”, “Hassan S.”]
irb(main):005:0> people_to_apologize.each do |gentleman|
irb(main):006:1* puts apologize(gentleman)
irb(main):007:1> end
Gennady B. apologies for wasting the time of yours.

Accepted ;-). No worries.