I have a rails app, where I have 2 models, user and notice. A user has a single notice. I'm using jQuery to implement the 'edit' and 'update' methods for notice.
In order to send the correct 'id' of the notice to my notice controller i've created a div tag in the view with the id of the notice, so that i can get the id of the notice using jQuery.
I was wondering whether this is the right way to go about implementing CRUD operations using jQuery(the having a div with the id of the notification part) ??
Any thoughts would be appreciated!
Thanks,
Punit