Displaying 2 results from an estimated 2 matches for "pdf_activ".
Did you mean:
mdf_active
2012 Oct 23
0
multidimensional Array or Hash with group_by 'created_at'
...Array or Hash with group_by
''created_at''.
3 dimensions needed:
myArray[week][day][data]
currently i only created it with 2 dimesions:
#model
def self.group_per_day
all.group_by{|t| t.created_at.strftime("%d. %B, %Y")}.sort #"%U" for
Weeks
end
#controller
@pdf_activities = Activity.group_per_day
#view
-@pdf_activities.each do |day|
=day[0]
-day[1].each do |activity|
=activity.activity
thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...lt;\n/Length %d 0 R\n>>\nstream\r\n",
pd->nobjs, pd->nobjs + 1);
***************
*** 6411,6417 ****
freeDeviceEncList(pd->encodings);
pd->fonts = NULL;
pd->encodings = NULL;
! free(pd->pos); free(pd->pageobj); free(pd);
}
static void PDF_Activate(pDevDesc dd) {}
--- 6458,6464 ----
freeDeviceEncList(pd->encodings);
pd->fonts = NULL;
pd->encodings = NULL;
! free(pd->pos); free(pd->pageobj); PDF_free_annots(pd); free(pd);
}
static void PDF_Activate(pDevDesc dd) {}
***************
*** 6663,6668 ****...