back soft

تعرفه تبلیغات در سایت
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس

آرشیو مطالب

جستجوگر

یافته ها در جستجو

    امکانات وب

    برچسب ها

    I'm trying to find out the format of the name of the input filed for nested attributes. Let's say that I have a edit action with input fields:

    <input type="text" name="...">
    

    I found out that the syntax for the name of the parameters is:

    "controller_name[attribute_name]"
    

    After a lot of tried I even found out that nested hash parameters can be passed as:

    "controller_name[attribute_name][attribute_name]"
    

    My problem is that I have has_many nested attributes and I didn't managed to find out what syntax rails expecting for array of nested records. Also it'll be nice to know how can I pass something to say that I want to destroy a nested record.

    I'm using Rails 5.1 BTW

    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    I have been struggling with this for a while now. Is there any way for me to get the "user_id" form my "users" table into my "orders" table when a customer places an order? When using the second SQL statement, after the "INSERT INTO" statement, the system still says that the order has been successful. However, when I check my database the order has not even been inserted. Without the use of the second SQL statement the order will be inserted correctly, with every field except the "user_id" being placed in the table. I have also tried "INSERT INTO table2 (column1, column2, column3, ...) SELECT column1, column2, column3, ... FROM table1 WHERE condition;" Statement and that also does not work. Would it work if only one SQL command was written? If so I am not sure how to do this. Any help would be greatly appreciated. <?php if (isset($_POST['submit'])) { include_once 'dbh.inc.php'; $type = mysqli_real_escape_string($conn, $_POST['type']); $square_ft = mysqli_real_escape_string($conn, $_POST['square_ft']); $materials = mysqli_real_escape_string($conn, $_POST['materials']); $time= mysqli_real_escape_string($conn, $_POST['time']); $date= mysqli_real_escape_string($conn, $_POST
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    This is the HTML code for the form: <form class='form-horizontal' action='?#comm_status' method='post'> <fieldset> <legend>Post a comment</legend> <div class='control-group'> <label class='control-label' for='comm_msg'>Message</label> <div class='controls'> <textarea class='input-xlarge' id='comm_msg' name='comm_msg'></textarea> </div> </div> <input type='hidden' name='comm_token' value='4745d4e0ec4688acba102d03a12877b6'> <div class='control-group'> <div class='controls'> <input type='submit' id='comm_submit' name='comm_submit' class='btn btn-primary' value='Post'> </div> </div> </fieldset> </form> I grab the comment inside the PHP code using the $message = $_POST['comm_msg'];. I don't do anything else with the comment and just store it in database. Here are my request headers: accept:text/html,application/xhtml+xml,application/xml; q=0.9,image/webp,image/apng,*/*; q=0.8 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9,hi;q=0.8 cache-control:max-age=0 content-length:17
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    I have been searching off and on, high and low, for many months, to no avail, for VBA code that I can include in my macros to highlight text using the current default highlight color. I have looked through my personal resource books and all up and down the land of Google, including her. I have a bazillion macros created that highlight text every which way to Sunday, in every possible (basic) color, and they all work great. But sometimes I have a scenario where I want to highlight random text in an ongoing manner, multiple times, in a particular color. Then I'll want to switch colors ... for a while. And switch again ... for a while. I have keyboard shortcuts (many) for a lot of highlighting options, including the built-in command shortcut to highlight text that I have selected manually. So, for example, I can manually select three words to my left, and use Ctrl+Alt+H to invoke the built-in Highlight command, and it will use the current default color. But I'm unable to automate that further with a macro. For example, I have used numerous different iterations of macros to highlight text as I'm typing it, or to automatically highlight X number of words to my left, or a line or sent
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :
    Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name
    نویسنده : استخدام کار بازدید : 0 تاريخ : يکشنبه 26 آذر 1396 ساعت: 17:31
    برچسب‌ها :