Rails convention while creating model using `rails g`.

9 views
Skip to first unread message

Love U Ruby

unread,
Dec 25, 2013, 6:33:44 AM12/25/13
to rubyonra...@googlegroups.com
I am very new to Rails. While I am reading a tutorial, I often used
`rails g controller animal`. Now my question is - Can I write `rails g
controller Animal` ? If not what is the reason or Why such convention ?

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Dec 25, 2013, 6:46:42 AM12/25/13
to rubyonra...@googlegroups.com
On 25 December 2013 11:33, Love U Ruby <li...@ruby-forum.com> wrote:
> I am very new to Rails. While I am reading a tutorial, I often used
> `rails g controller animal`. Now my question is - Can I write `rails g
> controller Animal` ? If not what is the reason or Why such convention ?

Try it and see. Does it make any difference to the classes or files generated?
Let us know the answer.

Colin
Reply all
Reply to author
Forward
0 new messages