Realtime Search Autocomplete Suggestions | Ruby On Rails 7 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

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

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

    We're uploading Monday-Friday now. Sorry this one is late, took me a while to get the Stimulus portion working haha.
    Still learning along with everyone as I make these.

  • @jamesli395
    @jamesli395 หลายเดือนก่อน

    Super useful demo !

  • @monroemann
    @monroemann ปีที่แล้ว

    Absolutely love your videos! Keep them coming. Thank you for all your support.

  • @compusoftsolutionshub
    @compusoftsolutionshub 11 หลายเดือนก่อน

    Hi @Deanin. Thank you so much for this video. I have a question though. I can't seem to be able to go further beyond this point. I need to aggregate the search keywords and display the analytics. Is it possible with the current project or a different setup is required?

  • @yuanweizhou935
    @yuanweizhou935 ปีที่แล้ว

    Hi, thank you for the video. It is really helpful. I have a quick question, where and when would I reindex the Post in a production environment? Thank you!

  • @lipin007
    @lipin007 ปีที่แล้ว +3

    Any plans on ruby 3.2 updates video.

    • @Deanin
      @Deanin  ปีที่แล้ว +3

      I didn't have any, but I can certainly try to put one together because that's a great idea!

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

      @@Deanin thank you!

  • @liamjames1027
    @liamjames1027 ปีที่แล้ว

    Hey Dean, thanks for the video! I followed this and it's working beautifully. One question - How would I go about deploying this to a staging/production environment? I've had a look online but it's all pretty confusing. Thanks again!

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

      Do you mean to someplace like Heroku?

    • @cheddargt
      @cheddargt ปีที่แล้ว

      @@monroemann since heroku is no longer free I think AWS would be a better option, but I'd also like to know if there's a clear path to getting that to actually become a usable website 😁

  • @duybao2136
    @duybao2136 ปีที่แล้ว

    Thank you for your video , when i followed this tutorial on my local host.
    i add gem 'searchkick', gem 'elasticsearch', '~> 7.17' ,gem 'foreman', github: 'ddollar/foreman' then bundle install.Then add searchkick into ProductsController. But it throw error :
    undefined local variable or method `searchkick' for ProductsController:Classsearchkick
    I try to bundle install again and restart many time but it doesnt work. Can you help me out.

  • @Test-fe3fo
    @Test-fe3fo ปีที่แล้ว +1

    Can you make a video "How to login using Metamask with Rails 7 and Devise?" would be great! Thank you very much.

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

    sadly this does not work for elastic search version 8.8

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

      So what is the solution then? Use a prior version of the elastic search gem?

    • @dc366
      @dc366 ปีที่แล้ว

      @@monroemann yes use an older version as far as I know

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

    useful : )

  • @pging8328
    @pging8328 ปีที่แล้ว

    th-cam.com/video/FUAfunx9X6w/w-d-xo.html Why don't you stream back, within the same controller action: both the search results, and also the search suggestions? I don't understand why you are using JS to do the same thing that hotwire was built to do?

  • @saduschima
    @saduschima 2 หลายเดือนก่อน

    Your explanation is faster, it should be slower, it is a bit difficult to follow your explanation.

  • @TammyRodgriguezTammycake
    @TammyRodgriguezTammycake 10 หลายเดือนก่อน

    I’m sorry but this one is the worst tutorial I’ve watched yet. It’s all over the place. The first half is not followable at all. You mentioned files that you didn’t even bother to show …

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

    Hi All! I have this line of code:
    But when I try to go to the form, I get this error:
    NameError in Interactions#new
    Showing /mnt/c/coding/contactpoints/app/views/interactions/_contact_search_form.html.erb where line #25 raised:
    undefined local variable or method `results' for #
    '.freeze;@output_buffer.append=( render partial: "search/suggestions", locals: {results: results} );@output_buffer.safe_append='
    ^^^^^^^
    Extracted source (around line #25):
    23 data-action="mousedown -> search#childClicked">
    24
    25
    26
    27
    28

    Any idea why I am getting this error? Thank you!

  • @duyphamhoangbao7090
    @duyphamhoangbao7090 ปีที่แล้ว

    def index
    @results = search_for_products
    respond_to do |format|
    format.turbo_stream do
    render turbo_stream:
    turbo_stream.update("names", partial: "display",locals: {products: @results} )
    end
    end
    end
    ActionController::UnknownFormat
    Can some one help me out.