On 4 November 2010 20:27, Kostas L. <loup...@gmail.com> wrote:
> 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?

Well there is no POST for the delete apparently.  At what point in the
above did you click the delete link?  If you are not sure then repeat
it and note the times that you do things.  Leave a bit between actions
if necessary.

Have you checked the html for your link to make sure it looks ok (View
> Page Source or similar in your browser)?

Colin

>
> 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.
>
>

-- 
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.

Reply via email to