Hassan,
I thank you for your answer.
I entered both "c" and "continue" at the irb prompt ... and got the two NameError's. This time I'll make my inputs red.
Loading development environment (Rails 5.2.0)
irb(main):001:0> c
NameError: undefined local variable or method `c' for main:Object
Did you mean? cb
from (irb):1
irb(main):002:0> continue
NameError: undefined local variable or method `continue' for main:Object
Did you mean? context
from (irb):2
irb(main):003:0> 2+3
=> 5
irb(main):004:0>
I am still at a loss how to continue execution at the irb prompt.
Ralph
Monday, July 9, 2018, 9:04:15 AM, you wrote:
HS> On Mon, Jul 9, 2018 at 6:54 AM, Ralph Shnelvar <ralphs@dos32.com> wrote:
>> From an Ubuntu command prompt I write
>> rails c
>> and I get
>> Loading development environment (Rails 5.2.0)
>> irb(main):001:0>
>> irb(main):003:0> 2+3
>> => 5
>> How does one continue execution?
HS> ?? "irb" stands for Interactive RuBy -- like any REPL it's waiting
HS> for YOU to enter something for it to do, like add 2 + 3 above.
>> What commands are available from the irb command prompt?
HS> Ruby/Rails methods.
HS> Do you have an ActiveRecord class 'Thing'? Then you can do
HS> e.g. `Thing.where(color: 'red')` and so on.
HS> --
HS> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
HS> twitter: @hassan
HS> Consulting Availability : Silicon Valley or remote
Ralph
No comments:
Post a Comment