Displaying 5 results from an estimated 5 matches for "video_page".
Did you mean:
video_pages
2007 Jan 15
2
Help with with displaying a selected list.
Hello. I call a find_all_by_subject("action") which returns 2 videos
and displays them properly. But when I add @video_pages, @videos =
paginate :videos, :per_page => 10 so I can paginate the videos, it
displays ALL the videos as if I selected list videos. Can someone
please tell me what I am doing wrong? Thank you.
selectaction.rhtml
<table>
<tr>
<% x = 0 %>
<% for video in @videos %>...
2007 Apr 04
2
[PLUGIN] ArPaginator - Allows you to easily paginate over any existing AR queries.
...os
Video.find :all, :conditions => "company_id=#{id} AND
status=''complete''", :order => "created_at DESC"
end
end
You wouldn''t be able to easily paginate over that query. You''d end up
doing something like this in your controller:
@video_pages, @videos = paginate :users, :conditions =>
"company_id=#{@company.id} AND status=''complete''", :order =>
"created_at DESC"
that''s obviously not DRY. You''ll have to update your paginate call if
the logic of complete_videos changes, and o...
2009 Mar 30
2
[PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
...$DEV
+ # example: test in a virtual machine (uses sudo because it is accessing raw device)
+ sudo kvm -m 128 -hda $DEV
+ # restore original MBR
+ sudo dd if=mbr-backup.bin of=$DEV
+
+*/
+
+ .code16 /* generate 16-bit code. doc: 9.13.12 */
+ .text /* sub-section (default 0). doc: 7.109 */
+
+video_page = 0x462 /* I/O port for video controller page selection (bitmask 0x07) */
+flag_active = 0x80 /* partition table entry active (bootable) flag */
+
+stack = 0x7C00 /* top of stack is immediately below where the BIOS loaded this MBR */
+pnp_header = (stack-4) /* The Plug'n'Play h...
2009 Mar 30
0
[PATCH 1/1] Add Diagnostic MBR for trouble-shooting
...$DEV
+ # example: test in a virtual machine (uses sudo because it is accessing raw device)
+ sudo kvm -m 128 -hda $DEV
+ # restore original MBR
+ sudo dd if=mbr-backup.bin of=$DEV
+
+*/
+
+ .code16 /* generate 16-bit code. doc: 9.13.12 */
+ .text /* sub-section (default 0). doc: 7.109 */
+
+video_page = 0x462 /* I/O port for video controller page selection (bitmask 0x07) */
+flag_active = 0x80 /* partition table entry active (bootable) flag */
+
+stack = 0x7C00 /* top of stack is immediately below where the BIOS loaded this MBR */
+pnp_header = (stack-4) /* The Plug'n'Play h...
2009 Mar 30
2
[PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
...$DEV
+ # example: test in a virtual machine (uses sudo because it is accessing raw device)
+ sudo kvm -m 128 -hda $DEV
+ # restore original MBR
+ sudo dd if=mbr-backup.bin of=$DEV
+
+*/
+
+ .code16 /* generate 16-bit code. doc: 9.13.12 */
+ .text /* sub-section (default 0). doc: 7.109 */
+
+video_page = 0x462 /* I/O port for video controller page selection (bitmask 0x07) */
+flag_active = 0x80 /* partition table entry active (bootable) flag */
+
+stack = 0x7C00 /* top of stack is immediately below where the BIOS loaded this MBR */
+pnp_header = (stack-4) /* The Plug'n'Play h...