The Depot Application

The Depot Application

23.5 Forms That Wrap Model Objects 21.2 Routing Requests

23.3 Helpers for Formatting, Linking, and Pagination

<"=&gt; 763"> expected but was
<"`/home/rubys/git/awdwr/data/code/e1/views/app/views/pager' -&gt; `app/views/pager'">.

Traceback:
  /home/rubys/git/awdwr/work-188-236/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb:307:in `assert_select'
  /home/rubys/git/awdwr/checkdepot.rb:1096
cp -vr /home/rubys/git/awdwr/data/code/e1/views/app/views/pager app/views
`/home/rubys/git/awdwr/data/code/e1/views/app/views/pager' -> `app/views/pager'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/pager/user_list.erb' -> `app/views/pager/user_list.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/pager/user_list.html.erb' -> `app/views/pager/user_list.html.erb'
ruby script/generate model user name:string
      exists  app/models/
      exists  test/unit/
      exists  test/fixtures/
      create  app/models/user.rb
      create  test/unit/user_test.rb
      create  test/fixtures/users.yml
      create  db/migrate
      create  db/migrate/20100523222952_create_users.rb

Restart the server.

rake db:migrate
mv 20100523222952_create_users.rb 20100301000001_create_users.rb
(in /home/rubys/git/awdwr/work-188-236/view)
==  CreateUsers: migrating ====================================================
-- create_table(:users)
   -> 0.0016s
==  CreateUsers: migrated (0.0018s) ===========================================
 
echo "PagerController.new.populate" | IRBRC=tmp/irbrc ruby script/console
*** glibc detected *** irb: realloc(): invalid next size: 0x081e52c8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7607803]
/lib/tls/i686/cmov/libc.so.6(realloc+0x10b)[0xb760975b]
irb(ruby_xrealloc+0x56)[0x8075696]
irb(rb_str_resize+0x53)[0x80bfcc3]
irb[0x80721c7]
irb(rb_find_file_ext+0x1d2)[0x8072a32]
irb(rb_require_safe+0x12d)[0x806726d]
irb[0x8063ab6]
irb[0x8063d81]
irb[0x805ecf3]
irb[0x8067be6]
irb[0x806806b]
irb[0x8059334]
irb[0x8063ab6]
irb[0x8063d81]
irb[0x805ecf3]
irb[0x80639fc]
irb[0x8063d81]
irb[0x805ecf3]
irb[0x805ef39]
irb[0x806b95e]
irb(rb_yield+0x21)[0x806cdc1]
irb(rb_ary_each+0x31)[0x80d1c51]
irb[0x8063ab6]
irb[0x8063d81]
irb[0x8060e11]
irb[0x80618ce]
irb[0x80639fc]
irb[0x8063d81]
irb[0x805ebc6]
irb[0x80639fc]
irb[0x8063d81]
irb[0x805ebc6]
irb[0x80639fc]
irb[0x8063d81]
irb[0x805ebc6]
irb[0x80639fc]
irb[0x8063d81]
irb[0x805ebc6]
irb[0x806d630]
irb(ruby_exec+0x16)[0x806d656]
irb(ruby_run+0x21)[0x806d9a1]
irb[0x805527f]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb75b0450]
irb[0x80551d1]
======= Memory map: ========
08048000-08102000 r-xp 00000000 08:05 20446      /home/rubys/.rvm/rubies/ruby-1.8.8-r27984/bin/ruby
08102000-08103000 rw-p 000ba000 08:05 20446      /home/rubys/.rvm/rubies/ruby-1.8.8-r27984/bin/ruby
08103000-081f8000 rw-p 08103000 00:00 0          [heap]
b7300000-b7321000 rw-p b7300000 00:00 0 
b7321000-b7400000 ---p b7321000 00:00 0 
b7486000-b74b3000 r-xp 00000000 08:05 2965573    /lib/libncurses.so.5.6
b74b3000-b74b6000 rw-p 0002c000 08:05 2965573    /lib/libncurses.so.5.6
b74b6000-b74e2000 r-xp 00000000 08:05 2965623    /lib/libreadline.so.5.2
b74e2000-b74e6000 rw-p 0002c000 08:05 2965623    /lib/libreadline.so.5.2
b74e6000-b74e7000 rw-p b74e6000 00:00 0 
b74f7000-b7582000 rw-p b74f7000 00:00 0 
b7582000-b7596000 r-xp 00000000 08:05 2998328    /lib/tls/i686/cmov/libpthread-2.7.so
b7596000-b7598000 rw-p 00013000 08:05 2998328    /lib/tls/i686/cmov/libpthread-2.7.so
b7598000-b759a000 rw-p b7598000 00:00 0 
b759a000-b76e3000 r-xp 00000000 08:05 2998314    /lib/tls/i686/cmov/libc-2.7.so
b76e3000-b76e4000 r--p 00149000 08:05 2998314    /lib/tls/i686/cmov/libc-2.7.so
b76e4000-b76e6000 rw-p 0014a000 08:05 2998314    /lib/tls/i686/cmov/libc-2.7.so
b76e6000-b76e9000 rw-p b76e6000 00:00 0 
b76e9000-b770c000 r-xp 00000000 08:05 2998318    /lib/tls/i686/cmov/libm-2.7.so
b770c000-b770e000 rw-p 00023000 08:05 2998318    /lib/tls/i686/cmov/libm-2.7.so
b770e000-b7717000 r-xp 00000000 08:05 2998316    /lib/tls/i686/cmov/libcrypt-2.7.so
b7717000-b7719000 rw-p 00008000 08:05 2998316    /lib/tls/i686/cmov/libcrypt-2.7.so
b7719000-b7741000 rw-p b7719000 00:00 0 
b7741000-b7743000 r-xp 00000000 08:05 2998317    /lib/tls/i686/cmov/libdl-2.7.so
b7743000-b7745000 rw-p 00001000 08:05 2998317    /lib/tls/i686/cmov/libdl-2.7.so
b7745000-b774c000 r-xp 00000000 08:05 2998330    /lib/tls/i686/cmov/librt-2.7.so
b774c000-b774e000 rw-p 00006000 08:05 2998330    /lib/tls/i686/cmov/librt-2.7.so
b774e000-b7758000 r-xp 00000000 08:05 2969156    /lib/libgcc_s.so.1
b7758000-b7759000 rw-p 0000a000 08:05 2969156    /lib/libgcc_s.so.1
b7759000-b775d000 r-xp 00000000 08:05 8703887    /home/rubys/.rvm/rubies/ruby-1.8.8-r27984/lib/ruby/1.8/i686-linux/readline.so
b775d000-b775e000 rw-p 00003000 08:05 8703887    /home/rubys/.rvm/rubies/ruby-1.8.8-r27984/lib/ruby/1.8/i686-linux/readline.so
b775e000-b7760000 rw-p b775e000 00:00 0 
b7760000-b7761000 r-xp b7760000 00:00 0          [vdso]
b7761000-b777b000 r-xp 00000000 08:05 1786011    /lib/ld-2.7.so
b777b000-b777d000 rw-p 00019000 08:05 1786011    /lib/ld-2.7.so
bfb13000-bfb28000 rw-p bffeb000 00:00 0          [stack]
Aborted
get /pager/user_list
Name


get /pager/user_list?page=2
Name


23.5 Forms That Wrap Model Objects 21.2 Routing Requests