Re: [Rails] Comment has_many comments

2013-01-18 Thread Colin Law
On 17 January 2013 18:32, Роман Пружанский <19pr...@gmail.com> wrote: > Hi, > > I want to create web application where people can discuss some things. > There will be a Posts and users can comment it, but I also want users can > comment commentaries. > Can I create model comment, that belongs_to co

Re: [Rails] Comment has_many comments

2013-01-17 Thread Walter Lee Davis
On Jan 17, 2013, at 5:31 PM, Walter Lee Davis wrote: > > On Jan 17, 2013, at 5:01 PM, Colin Law wrote: > >> On 17 January 2013 21:51, Walter Lee Davis wrote: >>> >>> On Jan 17, 2013, at 1:32 PM, Роман Пружанский wrote: >>> Hi, I want to create web application where people can

Re: [Rails] Comment has_many comments

2013-01-17 Thread Walter Lee Davis
On Jan 17, 2013, at 5:01 PM, Colin Law wrote: > On 17 January 2013 21:51, Walter Lee Davis wrote: >> >> On Jan 17, 2013, at 1:32 PM, Роман Пружанский wrote: >> >>> Hi, >>> >>> I want to create web application where people can discuss some things. >>> There will be a Posts and users can commen

Re: [Rails] Comment has_many comments

2013-01-17 Thread Colin Law
On 17 January 2013 21:51, Walter Lee Davis wrote: > > On Jan 17, 2013, at 1:32 PM, Роман Пружанский wrote: > >> Hi, >> >> I want to create web application where people can discuss some things. >> There will be a Posts and users can comment it, but I also want users can >> comment commentaries. >>

Re: [Rails] Comment has_many comments

2013-01-17 Thread Walter Lee Davis
On Jan 17, 2013, at 1:32 PM, Роман Пружанский wrote: > Hi, > > I want to create web application where people can discuss some things. > There will be a Posts and users can comment it, but I also want users can > comment commentaries. > Can I create model comment, that belongs_to comment and has

Re: [Rails] Comment has_many comments

2013-01-17 Thread Colin Law
On 17 January 2013 18:32, Роман Пружанский <19pr...@gmail.com> wrote: > Hi, > > I want to create web application where people can discuss some things. > There will be a Posts and users can comment it, but I also want users can > comment commentaries. > Can I create model comment, that belongs_to co

[Rails] Comment has_many comments

2013-01-17 Thread Роман Пружанский
Hi, I want to create web application where people can discuss some things. There will be a Posts and users can comment it, but I also want users can comment commentaries. Can I create model comment, that belongs_to comment and has_many comments, or smth similar? I only studying Rails. Sorry for