Hi Colin, the log file shows the above: Started GET "/teachers" for 127.0.0.1 at Thu Nov 04 22:16:06 +0200 2010 Processing by TeachersController#index as HTML [1m [36mSQL (40.0ms) [0m [1m SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' [0m [1m [35mTeacher Load (0.0ms) [0m SELECT "teachers".* FROM "teachers" Rendered shared/_header.html.erb (1.0ms) Rendered teachers/index.html.erb within layouts/teachers (31.0ms) Completed 200 OK in 467ms (Views: 59.0ms | ActiveRecord: 40.0ms)
Started GET "/teachers/11" for 127.0.0.1 at Thu Nov 04 22:16:08 +0200 2010 Processing by TeachersController#show as HTML Parameters: {"id"=>"11"} [1m [36mTeacher Load (0.0ms) [0m [1mSELECT "teachers".* FROM "teachers" WHERE ("teachers"."id" = 11) LIMIT 1 [0m Rendered shared/_header.html.erb (2.0ms) Rendered teachers/show.html.erb within layouts/teachers (23.0ms) Completed 200 OK in 147ms (Views: 61.0ms | ActiveRecord: 0.0ms) Started GET "/teachers" for 127.0.0.1 at Thu Nov 04 22:16:09 +0200 2010 Processing by TeachersController#index as HTML [1m [35mTeacher Load (1.0ms) [0m SELECT "teachers".* FROM "teachers" Rendered shared/_header.html.erb (2.0ms) Rendered teachers/index.html.erb within layouts/teachers (29.0ms) Completed 200 OK in 55ms (Views: 43.0ms | ActiveRecord: 1.0ms) Do you see anything strange? Hi Arailsdemo, do i have to write something in the application.rb file?? I havent edited this file. The only thing i have inside is: require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(:default, Rails.env) if defined?(Bundler) module Ptixiakes class Application < Rails::Application config.encoding = "utf-8" config.filter_parameters += [:password] end end Thank u in advance both Kostas On Nov 4, 4:41 pm, "Arailsdemo A." <li...@ruby-forum.com> wrote: > Oops. Correction on the above answer. It should be GET instead of POST. > If there is no javascript, the delete link sends a get request to your > server. A get request on an existing record gives you the edit action. > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.