23.3 Helpers for Formatting, Linking, and Pagination 21 Action Controller: Routing and URLs
Ticket 3235 : Stack Traceback running irb on Linux
ls app/controllers/*_controller.rb
app/controllers/admin_controller.rb
app/controllers/application_controller.rb
app/controllers/info_controller.rb
app/controllers/line_items_controller.rb
app/controllers/orders_controller.rb
app/controllers/products_controller.rb
app/controllers/store_controller.rb
app/controllers/users_controller.rb
irb e1/routing/config/routes_for_depot.rb
*** glibc detected *** irb: realloc(): invalid next size: 0x081e5f60 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb76628a3]
/lib/tls/i686/cmov/libc.so.6(realloc+0x10b)[0xb76647fb]
irb(ruby_xrealloc+0x56)[0x80758c6]
irb(rb_str_resize+0x53)[0x80c0213]
irb[0x80723b5]
irb(rb_find_file_ext+0x1d2)[0x8072c62]
irb(rb_require_safe+0x12d)[0x80672bd]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x8067c36]
irb[0x80680bb]
irb[0x8059384]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x805ef89]
irb[0x806b9ae]
irb(rb_yield+0x21)[0x806ce11]
irb(rb_ary_each+0x31)[0x80d21a1]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x8060e61]
irb[0x806191e]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x806d680]
irb(ruby_exec+0x16)[0x806d6a6]
irb(ruby_run+0x21)[0x806d9f1]
irb[0x80552cf]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb760b450]
irb[0x8055221]
======= Memory map: ========
08048000-08103000 r-xp 00000000 08:15 7704921 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/bin/ruby
08103000-08104000 rw-p 000ba000 08:15 7704921 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/bin/ruby
08104000-081f9000 rw-p 08104000 00:00 0 [heap]
b7300000-b7321000 rw-p b7300000 00:00 0
b7321000-b7400000 ---p b7321000 00:00 0
b74e1000-b750e000 r-xp 00000000 08:15 2965573 /lib/libncurses.so.5.6
b750e000-b7511000 rw-p 0002c000 08:15 2965573 /lib/libncurses.so.5.6
b7511000-b753d000 r-xp 00000000 08:15 2965623 /lib/libreadline.so.5.2
b753d000-b7541000 rw-p 0002c000 08:15 2965623 /lib/libreadline.so.5.2
b7541000-b7542000 rw-p b7541000 00:00 0
b7552000-b75dd000 rw-p b7552000 00:00 0
b75dd000-b75f1000 r-xp 00000000 08:15 7537632 /lib/tls/i686/cmov/libpthread-2.7.so
b75f1000-b75f3000 rw-p 00013000 08:15 7537632 /lib/tls/i686/cmov/libpthread-2.7.so
b75f3000-b75f5000 rw-p b75f3000 00:00 0
b75f5000-b773e000 r-xp 00000000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b773e000-b773f000 r--p 00149000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b773f000-b7741000 rw-p 0014a000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b7741000-b7744000 rw-p b7741000 00:00 0
b7744000-b7767000 r-xp 00000000 08:15 7537622 /lib/tls/i686/cmov/libm-2.7.so
b7767000-b7769000 rw-p 00023000 08:15 7537622 /lib/tls/i686/cmov/libm-2.7.so
b7769000-b7772000 r-xp 00000000 08:15 7537620 /lib/tls/i686/cmov/libcrypt-2.7.so
b7772000-b7774000 rw-p 00008000 08:15 7537620 /lib/tls/i686/cmov/libcrypt-2.7.so
b7774000-b779c000 rw-p b7774000 00:00 0
b779c000-b779e000 r-xp 00000000 08:15 7537621 /lib/tls/i686/cmov/libdl-2.7.so
b779e000-b77a0000 rw-p 00001000 08:15 7537621 /lib/tls/i686/cmov/libdl-2.7.so
b77a0000-b77a7000 r-xp 00000000 08:15 7537885 /lib/tls/i686/cmov/librt-2.7.so
b77a7000-b77a9000 rw-p 00006000 08:15 7537885 /lib/tls/i686/cmov/librt-2.7.so
b77a9000-b77b3000 r-xp 00000000 08:15 2969156 /lib/libgcc_s.so.1
b77b3000-b77b4000 rw-p 0000a000 08:15 2969156 /lib/libgcc_s.so.1
b77b4000-b77b8000 r-xp 00000000 08:15 8128476 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/lib/ruby/1.8/i686-linux/readline.so
b77b8000-b77b9000 rw-p 00003000 08:15 8128476 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/lib/ruby/1.8/i686-linux/readline.so
b77b9000-b77bb000 rw-p b77b9000 00:00 0
b77bb000-b77bc000 r-xp b77bb000 00:00 0 [vdso]
b77bc000-b77d6000 r-xp 00000000 08:15 1796441 /lib/ld-2.7.so
b77d6000-b77d8000 rw-p 00019000 08:15 1796441 /lib/ld-2.7.so
bfc7a000-bfc8f000 rw-p bffeb000 00:00 0 [stack]
ruby -rubygems /home/rubys/git/rails/bin/rails new view
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/controllers/application_controller.rb
create app/mailers
create app/models
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/test.rb
create config/environments/production.rb
create config/initializers
create config/initializers/mime_types.rb
create config/initializers/inflections.rb
create config/initializers/session_store.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/secret_token.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/500.html
create public/robots.txt
create public/favicon.ico
create public/422.html
create public/404.html
create public/index.html
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/prototype.js
create public/javascripts/dragdrop.js
create public/javascripts/rails.js
create public/javascripts/effects.js
create public/javascripts/controls.js
create public/javascripts/application.js
create script
create script/rails
create test
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/fixtures
create test/unit
create test/functional
create test/integration
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
bundle install
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0.rc) from source at /home/rubys/git/rails
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0.rc) from source at /home/rubys/git/rails
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.9)
Using rack-test (0.5.4)
Using tzinfo (0.3.22)
Using actionpack (3.0.0.rc) from source at /home/rubys/git/rails
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.5)
Using actionmailer (3.0.0.rc) from source at /home/rubys/git/rails
Using arel (0.4.0)
Using activerecord (3.0.0.rc) from source at /home/rubys/git/rails
Using activeresource (3.0.0.rc) from source at /home/rubys/git/rails
Using bundler (1.0.0.rc.3)
Using thor (0.14.0)
Using railties (3.0.0.rc) from source at /home/rubys/git/rails
Using rails (3.0.0.rc) from source at /home/rubys/git/rails
Using sqlite3-ruby (1.3.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
*[32m
Your bundle was installed to `/home/rubys/.rvm/gems/ruby-1.8.8-r28862`*[0m
edit config/routes.rb
View::Application.routes.draw do
# ...
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
match ':controller(/:action(/:id(.:format)))'
end
cp -v /home/rubys/git/awdwr/data/code/e1/views/app/controllers/*.rb app/controllers
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/array_controller.rb' -> `app/controllers/array_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/article_controller.rb' -> `app/controllers/article_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog1_controller.rb' -> `app/controllers/blog1_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog2_controller.rb' -> `app/controllers/blog2_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog_controller.rb' -> `app/controllers/blog_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/builder_controller.rb' -> `app/controllers/builder_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_controller.rb' -> `app/controllers/form_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_for_controller.rb' -> `app/controllers/form_for_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/pager_controller.rb' -> `app/controllers/pager_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/partial_controller.rb' -> `app/controllers/partial_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/products_controller.rb' -> `app/controllers/products_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/rhtml_controller.rb' -> `app/controllers/rhtml_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/test_controller.rb' -> `app/controllers/test_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/upload_controller.rb' -> `app/controllers/upload_controller.rb'
irb e1/routing/config/routes_for_blog.rb
*** glibc detected *** irb: realloc(): invalid next size: 0x081e5f60 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb75a08a3]
/lib/tls/i686/cmov/libc.so.6(realloc+0x10b)[0xb75a27fb]
irb(ruby_xrealloc+0x56)[0x80758c6]
irb(rb_str_resize+0x53)[0x80c0213]
irb[0x80723b5]
irb(rb_find_file_ext+0x1d2)[0x8072c62]
irb(rb_require_safe+0x12d)[0x80672bd]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x8067c36]
irb[0x80680bb]
irb[0x8059384]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ed43]
irb[0x805ef89]
irb[0x806b9ae]
irb(rb_yield+0x21)[0x806ce11]
irb(rb_ary_each+0x31)[0x80d21a1]
irb[0x8063b06]
irb[0x8063dd1]
irb[0x8060e61]
irb[0x806191e]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x8063a4c]
irb[0x8063dd1]
irb[0x805ec16]
irb[0x806d680]
irb(ruby_exec+0x16)[0x806d6a6]
irb(ruby_run+0x21)[0x806d9f1]
irb[0x80552cf]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7549450]
irb[0x8055221]
======= Memory map: ========
08048000-08103000 r-xp 00000000 08:15 7704921 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/bin/ruby
08103000-08104000 rw-p 000ba000 08:15 7704921 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/bin/ruby
08104000-081f9000 rw-p 08104000 00:00 0 [heap]
b7300000-b7321000 rw-p b7300000 00:00 0
b7321000-b7400000 ---p b7321000 00:00 0
b741f000-b744c000 r-xp 00000000 08:15 2965573 /lib/libncurses.so.5.6
b744c000-b744f000 rw-p 0002c000 08:15 2965573 /lib/libncurses.so.5.6
b744f000-b747b000 r-xp 00000000 08:15 2965623 /lib/libreadline.so.5.2
b747b000-b747f000 rw-p 0002c000 08:15 2965623 /lib/libreadline.so.5.2
b747f000-b7480000 rw-p b747f000 00:00 0
b7490000-b751b000 rw-p b7490000 00:00 0
b751b000-b752f000 r-xp 00000000 08:15 7537632 /lib/tls/i686/cmov/libpthread-2.7.so
b752f000-b7531000 rw-p 00013000 08:15 7537632 /lib/tls/i686/cmov/libpthread-2.7.so
b7531000-b7533000 rw-p b7531000 00:00 0
b7533000-b767c000 r-xp 00000000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b767c000-b767d000 r--p 00149000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b767d000-b767f000 rw-p 0014a000 08:15 7537573 /lib/tls/i686/cmov/libc-2.7.so
b767f000-b7682000 rw-p b767f000 00:00 0
b7682000-b76a5000 r-xp 00000000 08:15 7537622 /lib/tls/i686/cmov/libm-2.7.so
b76a5000-b76a7000 rw-p 00023000 08:15 7537622 /lib/tls/i686/cmov/libm-2.7.so
b76a7000-b76b0000 r-xp 00000000 08:15 7537620 /lib/tls/i686/cmov/libcrypt-2.7.so
b76b0000-b76b2000 rw-p 00008000 08:15 7537620 /lib/tls/i686/cmov/libcrypt-2.7.so
b76b2000-b76da000 rw-p b76b2000 00:00 0
b76da000-b76dc000 r-xp 00000000 08:15 7537621 /lib/tls/i686/cmov/libdl-2.7.so
b76dc000-b76de000 rw-p 00001000 08:15 7537621 /lib/tls/i686/cmov/libdl-2.7.so
b76de000-b76e5000 r-xp 00000000 08:15 7537885 /lib/tls/i686/cmov/librt-2.7.so
b76e5000-b76e7000 rw-p 00006000 08:15 7537885 /lib/tls/i686/cmov/librt-2.7.so
b76e7000-b76f1000 r-xp 00000000 08:15 2969156 /lib/libgcc_s.so.1
b76f1000-b76f2000 rw-p 0000a000 08:15 2969156 /lib/libgcc_s.so.1
b76f2000-b76f6000 r-xp 00000000 08:15 8128476 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/lib/ruby/1.8/i686-linux/readline.so
b76f6000-b76f7000 rw-p 00003000 08:15 8128476 /home/rubys/.rvm/rubies/ruby-1.8.8-r28862/lib/ruby/1.8/i686-linux/readline.so
b76f7000-b76f9000 rw-p b76f7000 00:00 0
b76f9000-b76fa000 r-xp b76f9000 00:00 0 [vdso]
b76fa000-b7714000 r-xp 00000000 08:15 1796441 /lib/ld-2.7.so
b7714000-b7716000 rw-p 00019000 08:15 1796441 /lib/ld-2.7.so
bfcf1000-bfd06000 rw-p bffeb000 00:00 0 [stack]
23.3 Helpers for Formatting, Linking, and Pagination 21 Action Controller: Routing and URLs