Colin Law wrote in post #1182361:
> On 22 March 2016 at 18:52, Aman Aman <lists@ruby-forum.com> wrote:
>>
>> But my data is not getting deleted. It just redirect to the show page of
>> the data which I want to delete.
>
> First look in log/development.log and see what is added when you click
> the delete link. There you should see which action is called, the
> parameters, and what happens next. If that all looks correct then you
> can insert simple debug statements into your code using code such as
> logger.info "some_varlable is #{some_variable.inspect}"
> the result will appear in development.log
>
> However I suggest that to get started you might be better to work
> right through the tutorial at railstutorial.org (which is free to use
> online). That can be done using an IDE in the cloud9 so you are not
> reliant on s/w installed on your PC.
>
> Colin
I have checked my development log it show
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.
--
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/23a73551afba3fadcdedb51b9f7502e4%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment