# Naming convention

**URL:** <https://www.ruby-forum.com/t/naming-convention/239505>\
**Category:** Rails\
**Created:** [March 1, 2014, 11:19pm UTC](https://www.ruby-forum.com/t/naming-convention/239505 "2014-03-01T23:19:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [March 1, 2014, 11:19pm UTC](https://www.ruby-forum.com/t/naming-convention/239505/1 "2014-03-01T23:19:30Z")

</div>

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](http://getbootstrap.com) as  
I’m attempting a company web site/personal page.

Any help appreciated.

Cheers,

Phil (who’s very new to Rails).

–  
currently (ab)using  
CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X Snow Leopard,  
RHEL 7, Ubuntu Precise & Saucy  
GnuGPG Key : [http://phildobbin.org/publickey.asc](http://phildobbin.org/publickey.asc)

---

<div class="post-metadata">

**Author:** ![phildobbin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Post date:** [March 2, 2014, 12:51am UTC](https://www.ruby-forum.com/t/naming-convention/239505/2 "2014-03-02T00:51:14Z")

</div>

On Sat, Mar 1, 2014 at 2:17 PM, Phil D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> `$ 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](http://guides.rubyonrails.org/active_record_basics.html#naming-conventions))  
(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,

Hassan S. ------------------------ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[Hassan Schroeder | about.me](http://about.me/hassanschroeder)  
twitter: @hass

---

<div class="post-metadata">

**Author:** ![phildobbin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Post date:** [March 2, 2014, 1:14am UTC](https://www.ruby-forum.com/t/naming-convention/239505/3 "2014-03-02T01:14:47Z")

</div>

On 01/03/2014 23:49, Hassan S. wrote:

> > 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…

–  
currently (ab)using  
CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X Snow Leopard,  
RHEL 7, Ubuntu Precise & Saucy  
GnuGPG Key : [http://phildobbin.org/publickey.asc](http://phildobbin.org/publickey.asc)

---

<div class="post-metadata">

**Author:** ![phildobbin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Post date:** [March 2, 2014, 10:13am UTC](https://www.ruby-forum.com/t/naming-convention/239505/4 "2014-03-02T10:13:02Z")

</div>

On 2 March 2014 00:13, Phil D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> …  
> 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.

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

Colin

---

<div class="post-metadata">

**Author:** ![phildobbin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Post date:** [March 2, 2014, 2:50pm UTC](https://www.ruby-forum.com/t/naming-convention/239505/5 "2014-03-02T14:50:12Z")

</div>

On 2 March 2014 10:27, Phil D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > rails.
> 
> 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…

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

---

<div class="post-metadata">

**Author:** ![phildobbin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@phildobbin](https://www.ruby-forum.com/u/phildobbin)\
**Post date:** [March 2, 2014, 11:29am UTC](https://www.ruby-forum.com/t/naming-convention/239505/6 "2014-03-02T11:29:31Z")

</div>

On 02/03/2014 09:10, Colin L. wrote:

> On 2 March 2014 00:13, Phil D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > …  
> > 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.
> 
> Also work right through a good tutorial such as [railstutorial.org](http://railstutorial.org)  
> (which is free to use online). That will show you the basics of  
> rails.

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…

–  
currently (ab)using  
CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X Snow Leopard,  
RHEL 7, Ubuntu Precise & Saucy  
GnuGPG Key : [http://phildobbin.org/publickey.asc](http://phildobbin.org/publickey.asc)
