ruby/rails rookie needs help to build a simple database app

I am attempting to give myself an intro to ruby and rails. I am a long time
software developer (unix, perl, c, database, web, etc...)

So far every tutorial I have tried has ended in disaster. In one case when
I go to the url listed in the tutorial I get an error and a traceback which
complains about a missing method. The other tutorials have similarly ended
in errors.

I am running on ubuntu 19.04.

One thing about the tutorials : when they say go to your application
directory and execute the command "rails something", would it be better to
execute "./bin/rails something" ?

Also could someone out there recommend a tutorial for a simple database
related app.

Thanks.

···

==================

Barry Kimelman
Winnipeg, Manitoba, Canada

If you don't mind a side-ways answer, check out the book "Effective Testing with RSpec 3". It uses Ruby, Sinatra, and SQLite to show you how to build tests, and a small full stack app at the same time.

Leam

···

On 8/10/19 5:56 PM, Barry Kimelman wrote:

I am attempting to give myself an intro to ruby and rails. I am a long time software developer (unix, perl, c, database, web, etc...)

So far every tutorial I have tried has ended in disaster. In one case when I go to the url listed in the tutorial I get an error and a traceback which complains about a missing method. The other tutorials have similarly ended in errors.

I am running on ubuntu 19.04.

One thing about the tutorials : when they say go to your application directory and execute the command "rails something", would it be better to execute "./bin/rails something" ?

Also could someone out there recommend a tutorial for a simple database related app.

Thanks.

==================

Barry Kimelman
Winnipeg, Manitoba, Canada

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Hi Barry,
I’m sorry all your attempts at learning Ruby and Rails keep ending in
disaster.
Have you tried this? -


One of the most popular rails tutorial for beginners.

Also I feel like you will have a much more speedy progress if you had at
least one friend who knows ruby and rails who you can always quickly write
whenever you get stuck.

Most of the errors you are getting are quite easy to bypass in less than a
minute, if you know someone.

I’m willing to be your guide if you want.

Let me know if this works for you.

Mayowa.

···

On Sun, Aug 11, 2019 at 12:00 AM Barry Kimelman <crhistopher.pike@gmail.com> wrote:

I am attempting to give myself an intro to ruby and rails. I am a long
time software developer (unix, perl, c, database, web, etc...)

So far every tutorial I have tried has ended in disaster. In one case when
I go to the url listed in the tutorial I get an error and a traceback which
complains about a missing method. The other tutorials have similarly ended
in errors.

I am running on ubuntu 19.04.

One thing about the tutorials : when they say go to your application
directory and execute the command "rails something", would it be better to
execute "./bin/rails something" ?

Also could someone out there recommend a tutorial for a simple database
related app.

Thanks.

==================

Barry Kimelman
Winnipeg, Manitoba, Canada

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

I should recommend tutorials by Michael Hartl on Ruby. He has comprehensive
tutorials which cover almost all the latest versions of Ruby on Rails.

Thanks

Joseph.

···

On Sat, 10 Aug 2019, 22:07 Mayowa Adewole, <adewolemayowa@gmail.com> wrote:

Hi Barry,
I’m sorry all your attempts at learning Ruby and Rails keep ending in
disaster.
Have you tried this? -
https://www.railstutorial.org/book
One of the most popular rails tutorial for beginners.

Also I feel like you will have a much more speedy progress if you had at
least one friend who knows ruby and rails who you can always quickly write
whenever you get stuck.

Most of the errors you are getting are quite easy to bypass in less than a
minute, if you know someone.

I’m willing to be your guide if you want.

Let me know if this works for you.

Mayowa.

On Sun, Aug 11, 2019 at 12:00 AM Barry Kimelman < > crhistopher.pike@gmail.com> wrote:

I am attempting to give myself an intro to ruby and rails. I am a long
time software developer (unix, perl, c, database, web, etc...)

So far every tutorial I have tried has ended in disaster. In one case
when I go to the url listed in the tutorial I get an error and a traceback
which complains about a missing method. The other tutorials have similarly
ended in errors.

I am running on ubuntu 19.04.

One thing about the tutorials : when they say go to your application
directory and execute the command "rails something", would it be better to
execute "./bin/rails something" ?

Also could someone out there recommend a tutorial for a simple database
related app.

Thanks.

==================

Barry Kimelman
Winnipeg, Manitoba, Canada

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

So far every tutorial I have tried has ended in disaster. In one case when I go to the url listed in the tutorial I get an error and a traceback which complains about a missing method. The other tutorials have similarly ended in errors.

Hard to comment without seeing specifics, but that's likely if the
versions of Ruby/Rails you're using don't match those of the tutorial.

One thing about the tutorials : when they say go to your application directory and execute the command "rails something", would it be better to execute "./bin/rails something" ?

Depends on how you've set your system up; if `rails --version` and
`./bin/rails --version` return the same answer it doesn't matter. If
you want to be certain, though, the explicit version is worth doing.
Alternatively set your PATH appropriately.

Also could someone out there recommend a tutorial for a simple database related app.

Rails uses a DB by default; have you considered just building some
trivial app from scratch? Maybe recreating something you've done in
another language/platform? (I'm not a tutorial user, I'm afraid.)

HTH, and good luck!

···

On Sat, Aug 10, 2019 at 2:00 PM Barry Kimelman <crhistopher.pike@gmail.com> wrote:
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote