Title: Re: [Rails] Continuing in Rails Console
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 <[email protected]> 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 ------------------------ [email protected]
HS> twitter: @hassan
HS> Consulting Availability : Silicon Valley or remote
Ralph
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1073087595.20180709094613%40dos32.com.
For more options, visit https://groups.google.com/d/optout.
- [Rails] Continuing in Rails Console Ralph Shnelvar
- Re: [Rails] Continuing in Rails Console Hassan Schroeder
- Re: [Rails] Continuing in Rails Console Ralph Shnelvar
- Re: [Rails] Continuing in Rails Console Colin Law
- Re: [Rails] Continuing in Rails Consol... Ralph Shnelvar
- Re: [Rails] Continuing in Rails C... Hassan Schroeder
- Re: [Rails] Continuing in Rails C... Brandon McClelland
- Re: [Rails] Continuing in Rails Console Hassan Schroeder

