# Beginning Rails development without internet

**URL:** <https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493>\
**Category:** Rails\
**Created:** [October 1, 2009, 9:41am UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493 "2009-10-01T09:41:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakscott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/b3f665/32.png) [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Post date:** [October 1, 2009, 9:41am UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493/1 "2009-10-01T09:41:22Z")

</div>

When I told some web developer friends that I was going to try to  
learn Rails while taking a year off before college (when I would have  
very little internet), they were a little concerned, saying that it  
was almost essential to get advice from more experienced developers to  
really understand the nuances of the language.

I have set this google group up to send me emails which I can retrieve  
on the boat, so hopefully I will be able to learn with your help.

Anyways, I have a few questions.

I am making a very simple forum as my first real project (one done  
without a tutorial in a book). I have read Head First Rails by  
O’Reilly (which was very helpful), and I think I can do it. However,  
the database organization is what I’m not sure about.

How should I organize threads, posts, users, and options?

I think that threads and posts I can make a relationship between, and  
use “thread\_id” in the posts table to show which posts belong to which  
threads. However, this seems like the table will get huge very  
quickly. On the other hand, I don’t think that each thread needs it’s  
own posts table. What do you recommend?

Similarly, should a user’s options be in the users table, or should  
options have its own table which connects via a relationship between  
user id and user\_id in the options table?

Finally, how should I store global forum settings like default posts  
per page and stuff like that?

Thanks so much for your help!  
~Zak S.

---

<div class="post-metadata">

**Author:** ![zakscott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/b3f665/32.png) [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Post date:** [October 1, 2009, 10:32am UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493/2 "2009-10-01T10:32:54Z")

</div>

2009/9/30 Zak S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> When I told some web developer friends that I was going to try to  
> learn Rails while taking a year off before college (when I would have  
> very little internet), they were a little concerned, saying that it  
> was almost essential to get advice from more experienced developers to  
> really understand the nuances of the language.

If you are trying to learn with only limited internet access then I  
would suggest that using books would be the way to start. Get Agile  
Web D. with Rails, 3rd Edition, and the Ruby pickaxe book,  
Programming Ruby: The Pragmatic Programmers’ Guide. Working through  
those should keep you happy for a few weeks.

Even so it will be difficult without google.

> user id and user\_id in the options table?
> 
> Finally, how should I store global forum settings like default posts  
> per page and stuff like that?

By the time you have worked through the books you may be able to  
answer some of these yourself. Also during the learning exercise it  
is not too important how you design stuff. You will learn much by  
coding and re-coding as you realise there are better ways of  
organising it. Don’t forget to write tests as you go (or before you  
go) so that as you refactor the code with your new ideas you can be  
confident it continues to work.

Use a version control system (git probably or svn) for your work.  
This makes it much easier to remember what you have done, backtrack  
out of blind alleys and so on.

Good luck

Colin

---

<div class="post-metadata">

**Author:** ![zakscott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/b3f665/32.png) [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Post date:** [October 1, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493/3 "2009-10-01T17:45:48Z")

</div>

Zak S. wrote:

> I just started Agile last night, and it seems good. Head First Rails  
> was really good in getting me interested and not overwhelming me. Does  
> Agile cover details about tests? I don’t really understand how they  
> work/how you build them, etc, and I can’t look them up…

You’re not going to be able to learn Rails from scratch without Internet  
access. Sorry to be discouraging, but that’s the way it is. There’s  
simply too much that’s only documented on blogs or websites. Wait till  
you get off the boat.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![zakscott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/b3f665/32.png) [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Post date:** [October 1, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493/4 "2009-10-01T17:51:21Z")

</div>

On Oct 1, 10:13 am, Zak S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I just started Agile last night, and it seems good. Head First Rails  
> was really good in getting me interested and not overwhelming me. Does  
> Agile cover details about tests? I don’t really understand how they  
> work/how you build them, etc, and I can’t look them up…

I don’t seem to remember it going very deep into testing.

You may want to check out The Rspec Book by David Chelmsky. It’s still  
in ‘beta’, but may be worth a try.

> **[Pragmatic Bookshelf: By Developers, For Developers](https://pragprog.com)**
>
> We improve the lives of professional developers. We create timely, practical books on classic and cutting-edge topics to help you learn and practice your craft, and accelerate your career. Come learn with us.

---

<div class="post-metadata">

**Author:** ![zakscott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/b3f665/32.png) [@zakscott](https://www.ruby-forum.com/u/zakscott)\
**Post date:** [October 1, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/beginning-rails-development-without-internet/176493/5 "2009-10-01T17:15:39Z")

</div>

I just started Agile last night, and it seems good. Head First Rails  
was really good in getting me interested and not overwhelming me. Does  
Agile cover details about tests? I don’t really understand how they  
work/how you build them, etc, and I can’t look them up…
