The Depot Application
23.6 Custom Form Builders
23.3 Helpers for Formatting, Linking, and Pagination
23.5 Forms That Wrap Model Objects
cp -rpv /home/rubys/git/awdwr/plugins/country_select vendor/plugins/
`/home/rubys/git/awdwr/plugins/country_select' -> `vendor/plugins/country_select'
`/home/rubys/git/awdwr/plugins/country_select/lib' -> `vendor/plugins/country_select/lib'
`/home/rubys/git/awdwr/plugins/country_select/lib/country_select.rb' -> `vendor/plugins/country_select/lib/country_select.rb'
`/home/rubys/git/awdwr/plugins/country_select/init.rb' -> `vendor/plugins/country_select/init.rb'
`/home/rubys/git/awdwr/plugins/country_select/install.rb' -> `vendor/plugins/country_select/install.rb'
`/home/rubys/git/awdwr/plugins/country_select/MIT-LICENSE' -> `vendor/plugins/country_select/MIT-LICENSE'
`/home/rubys/git/awdwr/plugins/country_select/uninstall.rb' -> `vendor/plugins/country_select/uninstall.rb'
`/home/rubys/git/awdwr/plugins/country_select/README' -> `vendor/plugins/country_select/README'
Restart the server.
ruby script/generate model product title:string description:text image_url:string price:decimal
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/product.rb
create test/unit/product_test.rb
create test/fixtures/products.yml
exists db/migrate
create db/migrate/20100906131832_create_products.rb
cp -v /home/rubys/git/awdwr/data/code/e1/views/db/migrate/*products.rb db/migrate/*products.rb
`/home/rubys/git/awdwr/data/code/e1/views/db/migrate/002_create_products.rb' -> `db/migrate/20100906131832_create_products.rb'
cp -v /home/rubys/git/awdwr/data/code/e1/views/app/models/shipping.rb app/models
`/home/rubys/git/awdwr/data/code/e1/views/app/models/shipping.rb' -> `app/models/shipping.rb'
ruby script/generate model detail product_id:integer sku:string manufacturer:string
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/detail.rb
create test/unit/detail_test.rb
create test/fixtures/details.yml
exists db/migrate
create db/migrate/20100906131834_create_details.rb
cp -v /home/rubys/git/awdwr/data/code/e1/views/db/migrate/*details.rb db/migrate/*details.rb
`/home/rubys/git/awdwr/data/code/e1/views/db/migrate/004_create_details.rb' -> `db/migrate/20100906131834_create_details.rb'
cp -v /home/rubys/git/awdwr/data/code/e1/views/app/models/detail.rb app/models
`/home/rubys/git/awdwr/data/code/e1/views/app/models/detail.rb' -> `app/models/detail.rb'
rake db:migrate
mv 20100906131832_create_products.rb 20100301000002_create_products.rb
mv 20100906131834_create_details.rb 20100301000003_create_details.rb
(in /home/rubys/git/awdwr/work-239/view)
== CreateProducts: migrating =================================================
-- create_table(:products)
-> 0.0023s
== CreateProducts: migrated (0.0024s) ========================================
== CreateDetails: migrating ==================================================
-- create_table(:details)
-> 0.0016s
== CreateDetails: migrated (0.0017s) =========================================
cp -vr /home/rubys/git/awdwr/data/code/e1/views/app/views/form_for app/views
`/home/rubys/git/awdwr/data/code/e1/views/app/views/form_for' -> `app/views/form_for'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/form_for/new.html.erb' -> `app/views/form_for/new.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/form_for/create.html.erb' -> `app/views/form_for/create.html.erb'
cp -vr /home/rubys/git/awdwr/data/code/e1/views/app/views/test app/views
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test' -> `app/views/test'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/test.html.erb' -> `app/views/test/test.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/date_format.reval' -> `app/views/test/date_format.reval'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/objects.xml.builder' -> `app/views/test/objects.xml.builder'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/select.html.erb' -> `app/views/test/select.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/t.html.erb' -> `app/views/test/t.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/numbers.xml.builder' -> `app/views/test/numbers.xml.builder'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/date_tags.html.erb' -> `app/views/test/date_tags.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/calculate.html.erb' -> `app/views/test/calculate.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/example.html.rdoc' -> `app/views/test/example.html.rdoc'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/date_dump.html.erb' -> `app/views/test/date_dump.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/calc.html.erb' -> `app/views/test/calc.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/dates.xml.builder' -> `app/views/test/dates.xml.builder'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/text.xml.builder' -> `app/views/test/text.xml.builder'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/test/example1.reval' -> `app/views/test/example1.reval'
cp -vr /home/rubys/git/awdwr/data/code/e1/views/app/views/products app/views
`/home/rubys/git/awdwr/data/code/e1/views/app/views/products' -> `app/views/products'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/products/show.html.erb' -> `app/views/products/show.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/products/new.html.erb' -> `app/views/products/new.html.erb'
`/home/rubys/git/awdwr/data/code/e1/views/app/views/products/create.html.erb' -> `app/views/products/create.html.erb'
get /form_for/new
get /test/select
xc
get /products/new
23.6 Custom Form Builders
23.3 Helpers for Formatting, Linking, and Pagination