Ruby on Rails #51 array of checkboxes in a Rails app

Sdílet
Vložit
  • čas přidán 26. 08. 2021
  • episode source code:
    github.com/corsego/51-checkbo...

Komentáře • 24

  • @ledockol
    @ledockol Před 2 lety +2

    Спасибо. Хорошее и полезное видео. Ничего лишнего, все по сути. Автору респект! Так держать.

  • @trendingtricks4489
    @trendingtricks4489 Před 2 lety

    superb...the way of explanation

  • @nathanfitger662
    @nathanfitger662 Před 2 lety +2

    love your content exactly what i needed

    • @SupeRails
      @SupeRails  Před 2 lety

      Hello Nathan! Glad it helped!

  • @serenachang4884
    @serenachang4884 Před rokem

    Thanks for the tutorial!

  • @grahambinho
    @grahambinho Před 2 lety +2

    I've run into a problem with this migration; although, I am using 'change_column'. The error is "TypeError: can't quote Array". Any idea why this might be the case?

  • @nurbolxaydaraliyev263
    @nurbolxaydaraliyev263 Před rokem +1

    First of all, thanks for making these videos, but I have a problem with this video tutorial. This is a "TypeError: can't quote Array" error. From what I understand you are using postsql, right?
    And I use sqlite3. Can you help me with this issue?

  • @trendingtricks4489
    @trendingtricks4489 Před 2 lety +1

    i used check box tag,it is getting inserted but not showing values

  • @BluRRedV1sI0N
    @BluRRedV1sI0N Před 2 lety +1

    Nice content as always. Do you think it's possible to make a video (or series if it's a larger "problem") on how to correctly setup AWS to start programming in the online IDE? :)

    • @SupeRails
      @SupeRails  Před 2 lety +1

      Good idea! Will create an episode covering AWS Cloud9 IDE next week. Will be #53!

    • @BluRRedV1sI0N
      @BluRRedV1sI0N Před 2 lety

      @@SupeRails great! That'd be interesting for me (and others I guess) as I want to get started with it aswell :). Thanks for your nice work!

  • @ilkinq.8646
    @ilkinq.8646 Před rokem

    lets say we have searcy filters that we want to add this checkbox options to filter out posts. how can we do it?

  • @RichardWigley1
    @RichardWigley1 Před měsícem

    If we are using the Array type does this mean it's Postgres only?

  • @MarcosMartelotte
    @MarcosMartelotte Před rokem

    Can it be used with images?

  • @ahartami1014
    @ahartami1014 Před 2 lety +1

    Hi Thank you for making this video. I am having this error when I add a new column with array.
    rails aborted!
    StandardError: An error has occurred, this and all later migrations canceled:
    can't quote Array

    • @ahartami1014
      @ahartami1014 Před 2 lety +1

      I have solved the issue by adding 'serialize :subcategory, Array' in my Project Class. Thank you a lot, your tutorial is very helpful.

    • @SupeRails
      @SupeRails  Před 2 lety

      @@ahartami1014 thanks for also posting your solution!

    • @dc20433
      @dc20433 Před rokem

      @@ahartami1014 Can you be more specific how you solved the issue? An statement like "add_column :posts, :tags, :text, serialize: subcategory, array: true, default: [ ]" does not work. Thank you!

  • @yulizah5916
    @yulizah5916 Před 2 lety +2

    first!

  • @MySaluto
    @MySaluto Před 2 lety +1

    Please don't do tags like that. it's pretty basic impelementation of tags that will be nightmare in any production environment. It's even not worth to use with elastic or full text search engines. Seems like crazy to do it in 2021/2022.

    • @SupeRails
      @SupeRails  Před 2 lety

      this has nothing to do with a Tags feature.
      I would be doing Tags with a has many through feature.

    • @MySaluto
      @MySaluto Před 2 lety

      @@SupeRails It's tags db filename here, so kinda looks like a tags, and it does not support spaces inside words.

  • @dc20433
    @dc20433 Před rokem

    db:migrate add_tags_to_posts.rb with "add_column :posts, :tags, :text, array: true, default: [ ]" gives error - "can't quote Array". I am using Rails 7

  • @nurbolxaydaraliyev263

    First of all, thanks for making these videos, but I have a problem with this video tutorial. This is a "TypeError: can't quote Array" error. From what I understand you are using Postgres, right?
    And I use SQLite. Can you help me with this issue?