Stimulus Reflex Lifecycle events

2
Gems / Libraries
could check this gist? it's an app wich use Stimulus Reflex. It's about a pagination reflex, the thing is i need to hide the spinner when `afterReflex()` callback is executed, but sometimes it does...
keithanderson replied
Solved

How do I make a link_to from notice notification to pages created the notification?

1
General
example: I have a discussion page and when discussion created by admin, notification sent to all users and I want the users to go straight to the discussion page to read the created discussion by ...
Wakgari Baja replied
Solved

How to convert each pdf pages to an image and display a thumbnail?

1
General
Hi everyone, I am new to rails and would like to ask how to create pdf thumbnails on each pages and/or convert each pages to an image and generate a thumbnail. Thank you.
VijayaKumar replied
Solved

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

Use .ENV instead of Secrets.yml for keys

6
Servers
Regarding around time area 3min for *Direct File Uploads to S3: Part 2*, I was wondering if I could just use ```.ENV``` since I'm using this as an example for my Github and Heroku. Instead of putt...
Chris Oliver replied
Solved

Executing javascript code that's returned within a Stimulus Reflex morph

1
Gems / Libraries
I've got Stimulus Reflex up and running well, but was wondering if there's a way to have it execute javascript commands sent back in script tags within HTML rendered partials when they're added to ...
Tom Iwaniec replied
Solved

Warden and System Tests are driving me insane.

2
Testing
Im using Warden for authentication and are now trying to write system test. But when I run a system test I get the following error: Failure/Error: if current_user.admin? NoMethodError: ...
Niklas Nson replied
Solved

Contact form that sends email directly from the page

3
Rails
Hello. I'm currently building my web dev portfolio using Rails. I just graduated coding bootcamp and it's all still pretty new, now that I'm doing it on my own. On my contact page, I just want to h...
Bri replied
Solved

Where Should I Start To Master Ruby on rails?

3
General
I know ruby and wants to learns ruby on rails. Where should I start? Can you give me a playlist?
Fatih Durmuş replied
Solved

Nesting resources & controllers best practice

3
General
Hi all, I'm relatively new to rails so apologies if this is a very basic concept / been asked before, I've had a look around and can't really find any best practices for when to use nested control...
Chris Oliver replied
Solved

Configure ruby projects of old version

3
Rails
I am working on Rails 6.0.0 and now i want to configure one project which build in rails version 5.1.0 Do in need to install rails 5.1.0 and then install required bundle? Or i can configure and r...
Chris Oliver replied
Solved

Jumpstart App get's stucked with wrong login data

9
General
Hi. I've created a new app by using the jumpstart template: rails new testapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb' rails db:create db:migrate rai...
Martin replied
Solved

How to used it ? Ruby on rails sites

1
General
I am new here and ,I have subscribed it through GitHub ,but by seeing a interface of Ruby on rails website user interface I am unable to understand that from where to start how can I used it in wel...
Chris Oliver replied
Solved

How do I install UIKit via yarn?

0
CSS
Answer: 1. Add uikit through yarn: yarn add uikit 2. Create a file to be transpiled by webpacker: app/javascript/uikit.sass (or app.sass... whichever name suits you best.) 3. Within uikit.sass imp...
Solved

How to change Boolean Value on specific date.

2
Rails
I am looking to change a boolean value on a specific date automatically. How would I do that. For example, it I have a post and would like it to publish automatically in two days at 8am. Would wou...
Solved

Hatchbox Postgres Problem

4
Rails
Hello, I have my app running on Hatchbox. I link it with the app hosted on Github so anytime that I push something on my master branch, its deploy automatically. Yesterday I did some modification ...
Solved

How do I initialize google maps place autocomplete stimulus controller in a tailwindcss-stimulus-components modal?

5
Javascript
I'm using Jumpstart Pro, and I set up google maps place autocomplete using this lesson: Google Maps and Google Places Autocomplete API with Rails, Turbolinks, and Stimulus.js It works as expected ...
Chris Oliver replied
Solved

List of Ruby Gems by Category on Go Rails

2
Rails
I think I remember seeing somewhere on Go Rails that listed out a bunch of helpful ruby gems by category. It had everything from badges, to cacheing, to styling, all with descriptions and a link ou...
Splohr replied
Solved

Tailwind Checked Radio Buttons = Change Background

1
CSS
I've been able to use Tailwind to change my radio buttons into normal buttons. changing the background on 'hover' works, same with 'active' (on click) but there's no setting for 'checked'. Has any...
Tim Dowling replied
Solved

ViewComponents and Tailwind CSS JIT

1
CSS
I created a flash view component to display flash messages. It does work, but the javascript trigger its display does not work as expected. Instead of displaying on the spot, it waits for like 5 s...
Stéphane Paquet replied
Solved

Want to stay up-to-date with Ruby on Rails?

Join 88,570+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.