On 10 May 2013 11:36, Carlos Mathiasen wrote:
> On Fri, May 10, 2013 at 5:09 AM, Colin Law wrote:
>>
>> On 9 May 2013 22:41, Jessica Lu wrote:
>> > I have a model called Video that has many statuses. I want to create a
>> > status of each kind and add it to @video.statuses in the def create of
>
On Fri, May 10, 2013 at 5:09 AM, Colin Law wrote:
> On 9 May 2013 22:41, Jessica Lu wrote:
> > I have a model called Video that has many statuses. I want to create a
> > status of each kind and add it to @video.statuses in the def create of
> > VideosController.
> >
> > In VideosController, I ha
On 9 May 2013 22:41, Jessica Lu wrote:
> I have a model called Video that has many statuses. I want to create a
> status of each kind and add it to @video.statuses in the def create of
> VideosController.
>
> In VideosController, I have:
>
> def create
> @video = Video.new(params[:video])
>
I have a model called Video that has many statuses. I want to create a
status of each kind and add it to @video.statuses in the def create of
VideosController.
In VideosController, I have:
def create
@video = Video.new(params[:video])
Kind.all.each do |f|
@video.statuses.new(:k
4 matches
Mail list logo