vhochstein / active_scaffold

Rails 4 Version of activescaffold supporting jquery
MIT License
156 stars 34 forks source link

active scaffold edit and update action not working #163

Closed arulviswa closed 13 years ago

arulviswa commented 13 years ago

Hi,

I'm running rails 3 version and I'm using rails 3 version of active scaffold when I'm doing some edit operation first time its updating correctly and in the second time edit it is not updating the record in the database and also in the edit for second time it is passing the parameters as get request which it is displayed in the URL itself. Similarly for delete and show also it is passing the parameters in the URL itself. Can any one suggest me to recover this.Thax in advance

Regards, Viswanathan P.

vhochstein commented 13 years ago

Works for me. Can you please setup an example app according to: http://vhochstein.wordpress.com/2010/10/08/one-step-rails-app-with-activescaffold-installation/ and tell me if it works in that one. At least I can tell you that it is working for me.

arulviswa commented 13 years ago

I have generated as a separate application and it is working fine. Already i have a big application in rails 3 in that application it is not working. I'm using active scaffold in Emr::AllergyHistoriesController and i have model named AllergyHistory not emr/AllergyHistory is this will cause any problems? and also I'm using the associated patient model in relationship to update or this will cause any problem without updating or editing. Thanx for your reply vhochestein

vhochstein commented 13 years ago

I ve never used namespaces for controllers... So, I m not sure if that might be an issue. Can you please verify that you are using correct javascript file for rails.js ? Activescaffold needs a special one. Please take a look into your little example app and verify that you are using same one.

vhochstein commented 13 years ago

Any news?

vhochstein commented 13 years ago

Will close this issue.