Ruby on Rails Tuesday, March 22, 2016

Colin Law wrote in post #1182371:
> On 22 March 2016 at 20:33, Aman Aman <lists@ruby-forum.com> wrote:
>>> logger.info "some_varlable is #{some_variable.inspect}"
>>
>> Started GET "/articles/1" for ::1 at 2016-03-23 02:00:34 +0530
>> Processing by ArticlesController#show as HTML
>> Parameters: {"id"=>"1"}
>> [1m[36mArticle Load (0.0ms)[0m [1mSELECT `articles`.* FROM
>> `articles` WHERE `articles`.`id` = 1 LIMIT 1[0m
>> Rendered articles/show.html.erb within layouts/application (1.0ms)
>> Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.0ms)
>>
>> It seems it rendering show controller.
>
> Are you sure that is all that is added to the log when you click the
> Destroy link? I don't think that is the result of clicking the link
> in the index.html.erb that you posted.
> Are you sure there is not a bit before that? Look at it before
> clicking the link and record the line number of the last line. Then
> click it and look again.
>
> Colin

Yes I am sure I have checked the line number. This is what I gets when I
click on delete button in development log file.

Started GET "/articles/2" for ::1 at 2016-03-23 10:03:30 +0530
Processing by ArticlesController#show as HTML
Parameters: {"id"=>"2"}
[1m[35mArticle Load (0.0ms)[0m SELECT `articles`.* FROM `articles`
WHERE `articles`.`id` = 2 LIMIT 1
Rendered articles/show.html.erb within layouts/application (0.0ms)
Completed 200 OK in 62ms (Views: 45.4ms | ActiveRecord: 0.0ms)

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7408260b57c6fed4487d2b1ee2d07e94%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment