Naming convention

Hi, all.

When invoking scaffolding such as:

`$ rails g scaffold Post title:string description:text`

what is permissible or is there a list of words that can be used in place of `Post`?

I know you can use Article, Store, etc but what other options are there? I'm looking for a static page a bit like <http://getbootstrap.com> as I'm attempting a company web site/personal page.

Any help appreciated.

Cheers,

  Phil (who's very new to Rails).

`$ rails g scaffold Post title:string description:text`

what is permissible or is there a list of words that can be used in place of `Post`?

You're creating a model -- other than adhering to the Rails conventions (Active Record Basics — Ruby on Rails Guides) (and avoiding reserved words) it's up to you.

I'm looking for a static page

If you're only creating a static page, you don't need a model -- just create a controller and a view.

HTH,

Hi, Hassan.

Thanks, that's a great help. I'm new to Rails & am spending most of my time searching for basic stuff. I guess reading the guides at Ruby on Rails is the first place to start.

Cheers,

  Phil...

Also work right through a good tutorial such as railstutorial.org (which is free to use online). That will show you the basics of rails.

Colin

Thanks for that, Colin.

I've also subscribed to Rails Cast Pro which is pretty good.

I'm really enjoying Rails. Long may it continue so...

Cheers,

  Phil...

I also suggest sticking round here, make sure that for any posts that you understand the question, that you also understand the answer. It is a great way of learning, and in particular learning about aspects that you did not even know existed.

Colin