in-place-edit

jEditable is taking only one id

眉间皱痕 提交于 2019-12-11 05:27:54
问题 Alright. I'm new to jEditable. Let me explain the issue i'm having with jEditable. I have this simple table in my database - id car make 1 panamera porsche 2 italia ferraris 3 avantador lamborghini 4 slk mercedes And i'm gonna echo this table in a while loop and below is the code - <script type="text/javascript"> <?php $query2 = "SELECT * FROM inplace LIMIT 0, 6"; $result2 = mysql_query($query2) or die ('Query couldn\'t be executed'); $row2 = mysql_fetch_assoc($result2); ?> $(function() { $("

rails in_place_edit: how do I pass an authenticity token?

不想你离开。 提交于 2019-12-10 10:34:30
问题 I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with the in_place_edit plugin. 回答1: This isn't a complete tested answer, but I took a look at the plugin code, and it looks like you could use the :with option to tack the

rails in_place_edit: how do I pass an authenticity token?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 08:41:38
I am trying to get in place editing working but I am running into this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken) I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with the in_place_edit plugin. This isn't a complete tested answer, but I took a look at the plugin code , and it looks like you could use the :with option to tack the authenticity token onto the end of the request parameters. Something along the lines of: in_place_editor("my_element",