Ruby on Rails Community Forum

How to Access rails User session into Laravel Application?

0
Rails
Hello, I have developed two Application one is main website which have all business logic's and functionality in ROR and second is my marketing website which i have developed in Laravel. Now i wan...
HardikShah47 posted

Can't resolve image into URL: undefined method `attachment_url' for #<#<Class:0x0 ...

1
Rails
Can't resolve image into URL: undefined method `attachment_url' for #&lt;#:0x00007f9f6493d770&gt; I spent hours to solve it but nothing !! Env: ruby : ruby 2.6.5p114 | Rails 6.0.2.2 what i did ...
almokhtar replied

Best product zoom plug in for rails WITH setup guide (that works for mobile and is not really old)?

0
General
I am building an ecommerce rails app using solidus... I am looking to get the products to zoom on hover on desktop and mobile. Fairly new to coding (esp JS) so would be great to have a proper up-to...
Gareth Phillips posted

Struggling with active nav tabs setting active class

0
Rails
I have an issue I haven't been able to solve. I have a products page set up with some different sections via bootstrap 4 nav tabs. General Info, Images, Pricing etc. I am trying to make it so that ...
spacerobotTR posted

How do I set a start value for 'serial' or sequence in psql

0
Ruby
Hi everyone, I have a migration like this: ``` def change add_column :orders, :order_number, :serial end ``` and when I create a new record in the database I get 1,2,3 etc., What I need is ...
Squealer182 posted

How can i switch to slave database in case of master fail?

0
Rails
I have 2 MySQL instances. One is master and the second is a slave. I want to configure the rails app in a way that if the connection to my master database failed, then auto-connect to the slave dat...
hetal sharma posted

Send ActionCable broadcast from javascript

1
Javascript
In the tutorials here, I've seen an ActionCable broadcast be initiated by a chat message save. The broadcast is sent via a relay to a background job and then the chatmessages on the clients update...
Chris Valentine replied

iteasykit does not exist.

1
Ruby
hello, I want to locally run a web site build with ruby on rails. I followed the tutorial until I get an error message that I can't solve: c:\Sites\FXCCsite&gt;rails server The path `c:/Sites/FXC...
daniel replied

How to destroy file with shrine when associated model has deleted ?

0
Rails
hi, someone knows how to delete an uploader file with shrine when the associated model is deleted like purge_later from active_storage.
francel.webdev posted

Keep getting undefined method `length' for nil:NilClass (NoMethodError)

0
Ruby
Hi guys, I have written the following code in Ruby that takes input from a user regarding plane and flight details and displays the user inputs as an array in the terminal. For example, if the use...
ibz95 posted

Video Streaming with Rails

0
General
Hi, I've been trying to find an efficient way to stream videos from Rails. I have about 10-20 videos that I would like to stream to an android application. I currently have a minimal application wr...
Hari Govind posted

https://gorails.com/episodes/webpacker-javascript-in-rails-6

2
General
Hi Chris Thanks for the Episode. I'm new for Rails 6, and when I followed your lesson I've got the multi dubbing of the flatpickr on going the back page in a browser. Like this: [see screenshot](h...
Ted Leason replied

Encrypting ActiveText contents using Symmetric Encryption

0
Rails
Hey there, I’m using ActiveText, using the Trix editor, in one of my fields in my model. The model in question has the correct attribute: ``` has_rich_text :content ``` However, I’m looking at a w...
Vincent posted

Generic Infinite Scrolling

3
Rails
I am building an app that has a couple of columns and I only want one column to scroll infinitely. I am trying to hack together a gem free version, but I am a novice with .js or jquery. My questi...
Gabriel replied

Get Email from DataBase for creating newsletter

2
Rails
I am trying to create a newsletter, Ive followed this instructional video on how to save the information but I am confused on what to do from the end of the video, https://www.youtube.com/watch?...
Derek Levine replied

How to send checkbox ids to modal pop up using stimulus js?

0
Rails
I have got list of items with checkbox on the left side of each row having id of that particular row. How can I send the ids of items to the modal using stimulus js so that I can display brief deta...
Animesh Dash posted

Crucial Resources

0
General
Hey. I would love some help making this as robust as possible. Thanks https://github.com/tylertomlinson/crucial_resources
Tyler Tomlinson posted

How do use image-url in scss

0
CSS
I’ve watched your lesson on setting up bootstrap in Rails 6. I have a small issue though with trying to add a background image to class. I can’t seem to get image-url or assset-url to work. Probabl...
Zen Garden DXB posted

Heroku RedisCloud connexions on "Realtime Online User Tracking with ActionCable"

0
Rails
Hi all, I'm running in a weird issue. Following the Realtime Online User Tracking with ActionCable screencast, in an app using rails 5.2 I used: ```ruby ActionCable.server.pubsub.redis_connection_...
Nathan Chalot posted

How do I render a partial which contains a json object and iterate over the json object and appends it to where I want it too!! Frustration level 1000

0
General
So here is the Scenario of what I am trying to do I have a view ``` = link_to admin_page_path(page), class: "edit-#{page.id}" do .subcategory.btn.btn-xs.btn-info{"da...
PDG+creative posted

Learning Ruby on Rails? Join our newsletter.

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