Codeplace | How to use the built-in AJAX functionality of Ruby on Rails

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 58

  • @mattfox9051
    @mattfox9051 7 ปีที่แล้ว

    I'm very happy I found your videos. Keep up the great work!

  • @MuhammadUmair001
    @MuhammadUmair001 2 ปีที่แล้ว

    Thanks a lot Sir!

  • @Nanducho
    @Nanducho 9 ปีที่แล้ว

    I write the source code, and my learning was more convenient because I identify details from tiny errors in the code. Thanks. You can permit work and learn.

    • @alanrudy2546
      @alanrudy2546 3 ปีที่แล้ว

      I guess I am kinda off topic but does anybody know of a good place to watch new movies online ?

    • @thomasbenson4804
      @thomasbenson4804 3 ปีที่แล้ว

      @Alan Rudy Flixportal :D

    • @alanrudy2546
      @alanrudy2546 3 ปีที่แล้ว

      @Thomas Benson thanks, I went there and it seems like a nice service =) Appreciate it!

    • @thomasbenson4804
      @thomasbenson4804 3 ปีที่แล้ว

      @Alan Rudy glad I could help xD

  • @kemo8276
    @kemo8276 3 ปีที่แล้ว

    Thank you very much ^^

  • @andriyyermoshin605
    @andriyyermoshin605 9 ปีที่แล้ว

    Thanks a lot!! Very interesting and useful! Great job!

  • @psiconeko
    @psiconeko 9 ปีที่แล้ว +7

    I couldn't find the source files at the website you provided, just more videos, could you put it on github please?

    • @kazkazar2412
      @kazkazar2412 8 ปีที่แล้ว

      github.com/stukio/ajax_crud

  • @veli4kostoev
    @veli4kostoev 9 ปีที่แล้ว

    Nice job!

  • @jitendrakushvaha7281
    @jitendrakushvaha7281 8 ปีที่แล้ว

    Lecture was awesome, Please I want to learn more can you upload more lecture for JavaScript and coffeeScript....

  • @coop4476
    @coop4476 3 ปีที่แล้ว

    ty sm

  • @romenigld
    @romenigld 8 ปีที่แล้ว

    great tutorial, thank's!

  • @joelgarcia2623
    @joelgarcia2623 7 ปีที่แล้ว

    thanks a lot. very easy and fast. when are you going to open the premmium courses in codeplace? i wanna take the bootcamp my friend please open them.

  • @econdoc
    @econdoc 7 ปีที่แล้ว

    You are my hero!! Wooot.

  • @huzaifah_zaba
    @huzaifah_zaba 8 ปีที่แล้ว

    thanks, it works..btw, does anyone knows how to process form error at modal?

    • @indie_rok
      @indie_rok 8 ปีที่แล้ว +1

      I was wondering the same thing and after a few trials and errors, I managed to get it working. Let's say for the purpose of the exercise that you added in you Post Model a validates_presence_of method on the :title attribute. If you then tried to create a new post by leaving the title field blank, the create method in your posts_controller would fail to save the new record and thus return an error hash. This error hash is the @post.errors in the else clause of the create method. So, the basic idea is to check in the js.erb file if the backend returned any errors. If it did, you need to loop through the hash and extract the messages. If it didn't, then add the new post as shown in the tutorial. Here is the simple solution, of course you can always move the code around a bit and display it to your liking in you view. Hope it helps:
      docs.google.com/document/d/1m0RCOiCtDBiSOc0wWqsQWL0vRFM7nDRTbls5dV48kEg/edit?usp=sharing

    • @huzaifah_zaba
      @huzaifah_zaba 8 ปีที่แล้ว +1

      Wow..Thanks..It works.. really appreciate it. The errors stick there even when changing page, Its only gone when I refresh the page..Any idea how to handle it?

    • @indie_rok
      @indie_rok 8 ปีที่แล้ว +1

      No problem! I updated my google doc, check the create.js.erb section, new code was added to resolve that problem

    • @huzaifah_zaba
      @huzaifah_zaba 8 ปีที่แล้ว +1

      nice..Thank you very much for your help.

  • @donrarib
    @donrarib 9 ปีที่แล้ว

    hi! perfect demonstration! But some codes are not visible and I did not find the source files in the website. Could you share with us the code, please?

  • @GolpesSecos8
    @GolpesSecos8 8 ปีที่แล้ว

    Brilliant! thanks you a lot :)

  • @samwit4501
    @samwit4501 9 ปีที่แล้ว

    really useful vid

  • @juanchoprogramacion
    @juanchoprogramacion 9 ปีที่แล้ว

    the best!! Thanks

  • @pupu_
    @pupu_ 8 ปีที่แล้ว

    perfect, thanks !

  • @jorgemnc80
    @jorgemnc80 5 ปีที่แล้ว

    Excellent tutorial, congratulations. What happens when the model has validations? For example "validates_presence_of: title"
    I tried to create an item that does not comply with the validation, but no error message is displayed to the user. How to solve it?

  • @osmond_
    @osmond_ 9 ปีที่แล้ว

    Hi, thanks for the videos. I have a question because it works mostly times,i mean, first time the page is loaded it does not work and i have to refresh the page and then it works. Do you know why it could be happening?

  • @joelgarcia2623
    @joelgarcia2623 7 ปีที่แล้ว

    how can i add image with paper clip with js? can you make other tutorial to upload images? please

  • @kareemsaleh
    @kareemsaleh 8 ปีที่แล้ว

    i followed the instructions , but somehow update /create actions don't update the page with the changes,any one can help? thanks in advance :)

    • @kazkazar2412
      @kazkazar2412 8 ปีที่แล้ว +2

      compare your code with this repo github.com/stukio/ajax_crud

    • @paulodetarsobezerra8482
      @paulodetarsobezerra8482 8 ปีที่แล้ว

      Same problem here. Didi fixed it? I alread compare with the github of stukio. When I clone the github everything works fine. I think the problem is with the gems version. I dont know

  • @terng_gio
    @terng_gio 7 ปีที่แล้ว

    There is always an empty post show up in the index even I destroy all posts.

  • @boxster9879
    @boxster9879 8 ปีที่แล้ว

    thanks! ;)

  • @__GGG__1
    @__GGG__1 7 ปีที่แล้ว

    Awesome

  • @Nanducho
    @Nanducho 9 ปีที่แล้ว

    Anybody can add the code of _post_hml.erb here?

    • @kazkazar2412
      @kazkazar2412 8 ปีที่แล้ว +1

      check this github.com/stukio/ajax_crud

  • @ВіталійАндруша-ф1м
    @ВіталійАндруша-ф1м 8 ปีที่แล้ว

    nice)

  • @itsboshd
    @itsboshd 9 ปีที่แล้ว

    why don't you just post the html code?

  • @irzoltan
    @irzoltan 6 ปีที่แล้ว +1

    Relax, breath, calm down. You are doing good :) keep a good flow going and practise the technical language so you don't need to freak out when explaining something and the word just wont pop in ti your head. Also please stop clicking with your mouth (it is extremely annoying due to the mic being very close)

  • @yadusolparterre
    @yadusolparterre 5 ปีที่แล้ว

    At first I thought it was going to be clear and simply explained but at 6:50 he completely lost me

  • @GoeHybrid
    @GoeHybrid 8 ปีที่แล้ว +2

    Good video, but you gotta chill out bro. It is quite annoying when you keep mistyping words.

  • @andriiofimkin2029
    @andriiofimkin2029 9 ปีที่แล้ว

  • @ngprnk
    @ngprnk 9 ปีที่แล้ว +1

    dude why do u panic so much ?

  • @palmweaver
    @palmweaver 6 ปีที่แล้ว

    By far one of the most annoying attempts at a technical tutorial that I've had the misfortune to listen to. Considering TH-cam's range that's a bold statment, but if you can make through the lip smacking he'll start using some very basic ajax at about the midpoint.