Ruby on Rails Saturday, March 1, 2014

On 01/03/2014 23:49, Hassan Schroeder wrote:

> On Sat, Mar 1, 2014 at 2:17 PM, Phil Dobbin <phildobbin@gmail.com> 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 (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,
>

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


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/531277B2.3090307%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment