Ruby on Rails Community Forum

How do render different show pages for my blog posts.

0
Rails
I have 3 different categories : themes, snippets, projects. Each blog post must related with those three categories. If anyone click post(assume related category is snippets), it display in diffe...
Medves Larisa Viviana posted

Disabling ActionCable for Unauthenticated Users Discussion

14
General
Hey Chris,I tried to integrate the meta tag if else statement into the group chat app in the channels/chatrooms.js and got "cannot read property `send_message` of undefined" error. It was surprisin...
Imallek replied

Is it possible to use Vue Components like VueTreeselect in Rails or what would be a possible alternative to VueTreeselect?

0
Gems / Libraries
Hey, I found this nice multiple nested dropdown: https://vue-treeselect.js.org/ which allows to select in tree like structure and I would like to use it for categories. I want to select several...
OuttaSpaceTime posted

How to use Google Maps and Markers Discussion

16
General
Awesome video. I am wondering how would I take the show page and link it to a different js file. The index.js is global correct? What would be the best way to setup a show view with just the map...
Jacques replied

Using TDD To Fix A Bug In The Kredis Gem Discussion

0
General

Getting stuck on this query

0
Rails
What am I missing? I have a model called Exhibit that belongs to a Request model. I have a Note model with a polymorphic relationship as the note can be about either an exhibit or a request but n...
Clint Baker posted

Does anyone know how to add logout functionality in JWT based Rails API?

0
Rails
what is the right way to give the session destroy method with JWT in rails API?
ratnarajsukale posted

Rails 5.0 - How to implement in-place editing without using best_in_place gem

1
Rails
I'm building an Events site using RoR which I've just upgraded to v5.0.1 (not moving to 5.1 just yet). My events show page has a comments section at the foot of the page which, so far, only has a c...
Humusk1 replied

I am confused about do blocks

1
Ruby
I am familiar with do while, do until, each do, etc. However I came across the following code that is using 'do' in a way I have not seen before and I am not sure what it is 'doing'. For example ...
William Jones replied
Solved

Guide to installing/configuring Rails 7 on MacOS Monterey 12.01

0
Rails
Any idea where I can find an installation/configuration guide for Rails 7 on my MacOS Monterey? I have seen some tutorials on GoRails for specific Rails 7 issues, but no tutorial on how to install ...
Joseph posted

Regarding 2 imports when running `rails hotwire:install`

1
Rails
Hi, When running `rails hotwire:install`, it shows 2 warnings: ``` You must import "./controllers" in your JavaScript entrypoint You must import @hotwired/turbo-rails in your JavaScript entrypoint ...
Askar replied

Need helping getting started with Ruby on an m1 MacBook.

0
General
I'm new to Ruby on Rails and am having trouble getting my first project up and running. I used Rosetta to open my terminal and installed homebrew, ruby, rails, postresql, mysql, and sqlite3, as we...
Humusk1 posted

How to setup Deno with Neovim's COC

0
Javascript
Hi, I am using Neovim, COC with LSP. I installed Deno for Javascript. It is Plug 'williamboman/nvim-lsp-installer' Plug 'prabirshrestha/vim-lsp' Plug 'neovim/nvim-lspconfig' Plug ...
phq posted

how can I translate the message generate by this @bookings.error.full_messages.to_sentence to some other language (such as Japanese) using I18n gem

0
Gems / Libraries
how can we use I18n.t in controller for such messages, how can we setup keys in locale for particular customised controller please tell in detail thank you
Shweta Srivastava posted

Vue.js Slots with Tailwind CSS and Rails Discussion

0
General

(Active Storage) How to check for an existing blob in another AWS bucket?

1
Rails
Hi there, I'm trying to do something quite simple, which is: - A user uploads a video to a chat (a message can have many attachments) - The video uploaded automatically gets transcoded with Elast...
Chris Oliver replied

Display Cloudinary image uploads

1
Gems / Libraries
Hello, I've been trying to solve a problem I've got when trying to display images from Cloudinary. I setup everyhting accounding to the guide they provide and basically I need to upload images fro...
RyanJeff replied

Rails for Beginners Part 24

1
Rails
A great tutorial. I'm a little stumped and looking for a little guidance. I followed along with the tutorial and added on ```<%= button_to "Connect Twitter", "/auth/twitter", method: :post, clas...
Jeremy Lincoln replied

Weird error in cable ready?

0
General
cable_ready 4.5.0 rails 6.1.4.1 ruby 3.0.2p107 This is a simple example from the basic tutorial (https://www.youtube.com/watch?v=F5hA79vKE_E) I suspect the error I am getting is because either cab...
Pito Salas posted

Deploy Ubuntu 14.04 Trusty Tahr Discussion

371
General
The following commands should be slightly modified:cap install STAGES=productioncap production deployI believe it should be the following:bundle exec cap install STAGES=productionbundle exec cap pr...
paul lahana replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.