DevHeads.net

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

Comments

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

By Hassan Schroeder at 08/11/2019 - 09:53

On Sat, Aug 10, 2019 at 2:00 PM Barry Kimelman

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.

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.

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!

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

By Mayowa Adewole at 08/10/2019 - 16:06

Hi Barry,
I’m sorry all your attempts at learning Ruby and Rails keep ending in
disaster.
Have you tried this? -
<a href="https://www.railstutorial.org/book" title="https://www.railstutorial.org/book">https://www.railstutorial.org/book</a>
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. ... at gmail dot com>
wrote:

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

By Joseph Musembi at 08/11/2019 - 00:31

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.

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

By leam hall at 08/10/2019 - 16:06

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