Appartamento in Affitto Milano – Washington

Problem with delete?

Added by Prem Kumar 286 days ago

Hello,
Whenever I want to delete,say, an account,it appears that it has been deleted.But again when I select "List Accounts" it appears again?That means deleted record remains in the database.I have cross checked it in the database.
Thank you.


Replies

RE: Problem with delete? - Added by Davide D'Agostino 276 days ago

Hello,

you mean the online demo? If yes it wose because I prevent deleting of

RE: Problem with delete? - Added by Prem Kumar 275 days ago

In my project I have to Cookie session store.Now problem is as follows:

In application.rb the following line is causing problem
protect_from_forgery # :secret => '0cd4d05dff20150b6e1e34c29b975fb5'

As mentioned in the wiki I have commented out this line,then the delete button is working fine.
But if I leave it out uncommented, which I will have to do in my project,the delete button is not working properly.
At first it seems that it is working fine but when again we are going to call,let's say List Accounts after deleting an account,it shows that it is still there..

RE: Problem with delete? - Added by Davide D'Agostino 274 days ago

It's normal that u cannot delete with uncomment secret key.

I you want use it you need to add in the list.html.erb in delete function, this: baseParams: {authenticity_token: '0cd4d05dff20150b6e1e34c29b975fb5'}