sd@client92:~$ pwd /home/sd sd@client92:~$ rails new taste.

com create create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/views/layouts/application.html.erb create app/models create config create config/routes.rb create config/application.rb create config/environment.rb create config/environments create config/environments/test.rb create config/environments/development.rb create config/environments/production.rb create config/initializers create config/initializers/session_store.rb create config/initializers/inflections.rb create config/initializers/secret_token.rb create config/initializers/mime_types.rb create config/initializers/backtrace_silencers.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/favicon.ico create public/robots.txt create public/500.html create public/404.html create public/index.html create public/422.html create public/images create public/images/rails.png create public/stylesheets create public/stylesheets/.gitkeep create public/javascripts create public/javascripts/rails.js create public/javascripts/dragdrop.js create public/javascripts/prototype.js create public/javascripts/effects.js

create public/javascripts/application.js create public/javascripts/controls.js create script create script/rails create test create test/performance/browsing_test.rb create test/test_helper.rb create test/integration create test/unit create test/functional create test/fixtures create tmp create tmp/sessions create tmp/sockets create tmp/cache create tmp/pids create vendor/plugins create vendor/plugins/.gitkeep sd@client92:~$ cd taste.com sd@client92:~/taste.com$ ls app config.ru doc lib public README test vendor config db Gemfile log Rakefile script tmp sd@client92:~/taste.com$ rails plugin install git://github.com/Satish/restful-au thentication.git Initialized empty Git repository in /home/sd/taste.com/vendor/plugins/restful-au thentication/.git/ remote: Counting objects: 90, done. remote: Compressing objects: 100% (79/79), done. remote: Total 90 (delta 9), reused 27 (delta 2) Unpacking objects: 100% (90/90), done. From git://github.com/Satish/restful-authentication * branch HEAD -> FETCH_HEAD sd@client92:~/taste.com$ rails plugin install git://github.com/Satish/restful-au thentication.git already installed: restful-authentication (git://github.com/Satish/restful-authe ntication.git). pass --force to reinstall sd@client92:~/taste.com$ rails g authenticated user sessions create app/models/user.rb create app/controllers/sessions_controller.rb create app/controllers/users_controller.rb create lib/authenticated_system.rb create lib/authenticated_test_helper.rb create config/initializers/site_keys.rb create test/functional/sessions_controller_test.rb create test/functional/users_controller_test.rb create test/unit/user_test.rb create test/fixtures/users.yml create app/helpers/sessions_helper.rb create app/helpers/users_helper.rb create app/views/sessions/new.html.erb create app/views/users/new.html.erb create app/views/users/_user_bar.html.erb create db/migrate/20100731125617_create_users.rb route match '/activate/:activation_code' => 'users#activate', :as => :ac tivate, :activation_code => nil route match 'logout' => 'sessions#destroy', :as => :logout route match 'login' => 'sessions#new', :as => :login route match 'register' => 'users#create', :as => :register route match 'signup' => 'users#new', :as => :signup route resource :session, :only => [:new, :create, :destroy]

route resources :users Ready to generate. ---------------------------------------------------------------------Once finished, don't forget to: - Install the dynamic_form plugin(error_messages_for was removed from Rails and is now available as a plugin): Install it with rails plugin install git://github.com/rails/dynamic_form.git - Add routes to these resources. In config/routes.rb, insert routes like: match 'login' => 'sessions#new', :as => :login match 'logout' => 'sessions#destroy', :as => :logout match 'signup' => 'users#new', :as => :signup ---------------------------------------------------------------------We've create a new site key in config/initializers/site_keys.rb. If you have ex isting user accounts their passwords will no longer work (see README). As always, keep this file safe but don't post it in public. ---------------------------------------------------------------------sd@client92:~/taste.com$ rails plugin install git://github.com/rails/dynamic_for m.git Initialized empty Git repository in /home/sd/taste.com/vendor/plugins/dynamic_fo rm/.git/ remote: Counting objects: 22, done. remote: Compressing objects: 100% (17/17), done. remote: Total 22 (delta 2), reused 0 (delta 0) Unpacking objects: 100% (22/22), done. From git://github.com/rails/dynamic_form * branch HEAD -> FETCH_HEAD sd@client92:~/taste.com$ sd@client92:~/taste.com$ rake db:create (in /home/sd/taste.com) sd@client92:~/taste.com$ rake db:migrate (in /home/sd/taste.com) == CreateUsers: migrating ==================================================== -- create_table("users") -> 0.0027s -- add_index(:users, :login, {:unique=>true}) -> 0.0013s == CreateUsers: migrated (0.0043s) =========================================== sd@client92:~/taste.com$ rails server => Booting WEBrick => Rails 3.0.0.beta4 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-07-31 18:31:37] INFO WEBrick 1.3.1 [2010-07-31 18:31:37] INFO ruby 1.8.7 (2010-01-10) [i486-linux] [2010-07-31 18:31:42] INFO WEBrick::HTTPServer#start: pid=3831 port=3000 ^C[2010-07-31 18:35:23] INFO going to shutdown ... [2010-07-31 18:35:23] INFO WEBrick::HTTPServer#start done. Exiting sd@client92:~/taste.com$ rake db:create (in /home/sd/taste.com) sd@client92:~/taste.com$ rake db:migrate (in /home/sd/taste.com) == CreateUsers: migrating ====================================================

-- create_table("users") -> 0.1207s -- add_index(:users, :login, {:unique=>true}) -> 0.2090s == CreateUsers: migrated (0.3301s) =========================================== sd@client92:~/taste.com$ rails server => Booting WEBrick => Rails 3.0.0.beta4 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-07-31 18:36:54] INFO WEBrick 1.3.1 [2010-07-31 18:36:54] INFO ruby 1.8.7 (2010-01-10) [i486-linux] [2010-07-31 18:36:59] INFO WEBrick::HTTPServer#start: pid=3877 port=3000 Started GET "/login" for 127.0.0.1 at Sat Jul 31 18:37:20 +0530 2010 Processing by SessionsController#new as HTML Rendered sessions/new.html.erb within layouts/application (4.3ms) Completed 200 OK in 7ms (Views: 6.8ms ActiveRecord: 0.0ms) Started POST "/session" for 127.0.0.1 at Sat Jul 31 18:37:54 +0530 2010 Processing by SessionsController#create as HTML Parameters: {"commit"=>"Log in", "authenticity_token"=>"GhHjeHiWSEF3iT2V9HZqy4 5zBNKqC9x0DwoGTXwoUFs=", "password"=>"[FILTERED]", "login"=>"saranya"} SQL (0.3ms) SHOW TABLES User Load (0.6ms) SELECT `users`.* FROM `users` WHERE (`users`.`login` = 'sar anya') LIMIT 1 Failed login for 'saranya' from 127.0.0.1 at Sat Jul 31 13:07:54 UTC 2010 Rendered sessions/new.html.erb within layouts/application (4.6ms) Completed 200 OK in 130ms (Views: 7.5ms ActiveRecord: 0.8ms) Started GET "/logout" for 127.0.0.1 at Sat Jul 31 18:39:21 +0530 2010 Processing by SessionsController#destroy as HTML Redirected to http://localhost:3000/ Completed 302 Found in 14ms Started GET "/login" for 127.0.0.1 at Sat Jul 31 18:39:25 +0530 2010 Processing by SessionsController#new as HTML Rendered sessions/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 7ms (Views: 6.7ms ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at Sat Jul 31 18:39:32 +0530 2010 Processing by UsersController#new as HTML Rendered users/new.html.erb within layouts/application (34.9ms) Completed 200 OK in 53ms (Views: 37.7ms ActiveRecord: 0.0ms) Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:40:00 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"saranya.mohanbaba@sedin.co.in" }} SQL (0.1ms) BEGIN User Load (0.4ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B

INARY 'saranya') LIMIT 1 User Load (0.4ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'saranya.mohanbaba@sedin.co.in') LIMIT 1 SQL (0.2ms) ROLLBACK Rendered users/new.html.erb within layouts/application (7.7ms) Completed 200 OK in 56ms (Views: 10.3ms ActiveRecord: 0.9ms) Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:40:16 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"saranya.mohanbaba@sedin.co.in" }} SQL (0.1ms) BEGIN User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B INARY 'saranya') LIMIT 1 User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'saranya.mohanbaba@sedin.co.in') LIMIT 1 SQL (0.1ms) ROLLBACK Rendered users/new.html.erb within layouts/application (7.4ms) Completed 200 OK in 38ms (Views: 9.8ms ActiveRecord: 0.2ms) Started GET "/signup" for 127.0.0.1 at Sat Jul 31 18:41:45 +0530 2010 Processing by UsersController#new as HTML Rendered users/new.html.erb within layouts/application (12.0ms) Completed 200 OK in 29ms (Views: 14.5ms ActiveRecord: 0.0ms) Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:41:58 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"saranya.mohanbaba@sedin.co.in" }} SQL (0.1ms) BEGIN User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B INARY 'saranya') LIMIT 1 User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'saranya.mohanbaba@sedin.co.in') LIMIT 1 SQL (0.1ms) ROLLBACK Rendered users/new.html.erb within layouts/application (7.7ms) Completed 200 OK in 86ms (Views: 10.6ms ActiveRecord: 0.2ms) Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:42:16 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"saranya.mohanbaba@sedin.co.in" }} SQL (0.1ms) BEGIN User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B INARY 'saranya') LIMIT 1 User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'saranya.mohanbaba@sedin.co.in') LIMIT 1 SQL (0.1ms) ROLLBACK Rendered users/new.html.erb within layouts/application (7.3ms) Completed 200 OK in 37ms (Views: 9.7ms ActiveRecord: 0.2ms)

Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:43:36 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"saranya.mohanbaba@sedin.co.in" }} SQL (0.1ms) BEGIN User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B INARY 'saranya') LIMIT 1 User Load (0.1ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'saranya.mohanbaba@sedin.co.in') LIMIT 1 SQL (0.1ms) ROLLBACK Rendered users/new.html.erb within layouts/application (7.1ms) Completed 200 OK in 39ms (Views: 9.8ms ActiveRecord: 0.2ms) Started POST "/users" for 127.0.0.1 at Sat Jul 31 18:44:24 +0530 2010 Processing by UsersController#create as HTML Parameters: {"commit"=>"Sign up", "authenticity_token"=>"e/QQWWB2I+cYuSQ8tR3X4 YevsPeP4kb/Xt26VvzpD3c=", "user"=>{"password_confirmation"=>"[FILTERED]", "passw ord"=>"[FILTERED]", "login"=>"saranya", "email"=>"dhibika.baskaran@sedin.co.in"} } SQL (42.6ms) BEGIN User Load (0.2ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`login` = B INARY 'saranya') LIMIT 1 User Load (0.3ms) SELECT `users`.`id` FROM `users` WHERE (`users`.`email` = B INARY 'dhibika.baskaran@sedin.co.in') LIMIT 1 SQL (0.5ms) describe `users` SQL (0.2ms) INSERT INTO `users` (`created_at`, `crypted_password`, `email`, ` login`, `name`, `remember_token`, `remember_token_expires_at`, `salt`, `updated_ at`) VALUES ('2010-07-31 13:14:24', '5f30dfcdfe0430c629df28deece2cc0236665bed', 'dhibika.baskaran@sedin.co.in', 'saranya', '', NULL, NULL, '7a3aa4ec20cfd5fda030 6379917129016f2b1612', '2010-07-31 13:14:24') SQL (57.6ms) COMMIT Redirected to http://localhost:3000/ Completed 302 Found in 136ms

Sign up to vote on this title
UsefulNot useful