Need help setting up scaffolding for this situation

I've asked a question before and got a great answer, but being a newbie to Rails and still loosening the basics, I needed someone to show me how to create some scaffolding for a situation in which Hates_ was good enough to lash out at me. I've set up my application and whatnot, but basically I want to have, for example, goals:

  • Stories table for the list of stories
  • "Pages" table, for a list of pages that can be attached to history
  • The "LinkedPages" table to link one page to several other pages.

The idea is that users can create Stories. Stories have Pages. Pages link to other pages as a fork, and Hates_ suggested using the LinkedPages table to help the process of determining which pages link to other pages.

If anyone can use the examples of Hates_ models in the link above (or give me better ones if needed) and just show me how to get started, I would be extremely grateful. Rails has had the highest initial learning curve of any programming language or scripting language I've studied in the past, I'm just starting to understand a lot of the basics.

Thanks in advance!

+1


source to share


1 answer


Here's an updated fast-paced video that quickly introduces some of the evil sweet features in Rails through a somewhat contrived blogging tutorial.

http://media.rubyonrails.org/video/rails_blog_2.mov



The presenter fills in most of the information in a very short amount of time and inserts some prepared code from time to time, but throughout, he clicks on many key features.

He explains how to set up scaffolding and also probably the last 5 minutes or so.

+2


source







All Articles