
Where is "embeddable javascript widget Part 4"?
2
General
It seems like all parts of "embeddable javascript widget" tutorials are available EXCEPT part 4.
https://gorails.com/episodes/embeddable-javascript-widget-part-4
Any idea where to find it?
Chris Oliver replied
Solved

Do you measure your app's uptime?
2
General
If so, than how do you measure it? Any libraries, tools, services, etc worth investigating?
Peter Marcano replied
Solved

Working with Lists from a Database
1
Rails
Greetings, I am learing Ruby on Rails as I'm migrating a legacy app from PHP. I'm just a beginner in ROR, and having trouble setting up the simplest of relationships.
In simplest terms, I have a ...
Brad Morrical replied
Solved

Adding external .js files to a new Rails 6 web app
1
Rails
I have created a new rails 6 app. in rails 6, javascript folder is outside assets. I have copied all the css and js files from an existing application to this new one and application.css,applicatio...
Safwan SM replied
Solved

`Redirect from naked domain to www from inside the routes doesn't change the domain in the address bar - because of Turbolinks?
2
Rails
Hi, I am trying to force a redirect from naked domain to www from inside the Rails app, since I can't do this with the Nginx ingress in Kubernetes (basically, users can add custom domains and the a...
Vito Botta replied
Solved

How do I display just the year in a sect date?
2
Rails
Good day Rails Devs,
What's the proper way to dsiplay just the year in:
```
<%= form.date_select :year %>
```
Rob Thomas replied
Solved

How do I drag and drop an image file?
3
Rails
I have a rails application that can upload an image using CarrierWave and MiniMagick and a file_field. This seems to be the usual way to do things and works well. I have a user that wants to open...
William Jones replied
Solved

How to model these relations in Rails
6
Rails
For a couple of days now i am going back and forth how to models this.
I currently have the following model structure and relations (simplified)
```
class Fleet < ApplicationRecord
# proper...
Drazen replied
Solved

How to attach a remote S3 file to an outgoing email? [SOLVED]
3
Rails
I'm using a regular mailer to send text emails and now I want to attach a file stored on S3 to the email. I have the URL of the file and was naively hoping something like this would work:
```
def ...
Daniel Weaver replied
Solved

How to test attachments in ActionMailbox?
4
Rails
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this?
receive_inbound_email_from_mail(
...
Taha Husain replied
Solved

How do I integrate Uppy.io or Dropzone.js into Rails with ActiveStorage?
12
Gems / Libraries
[Uppy](https://uppy.io/) and [Dropzone](https://www.dropzonejs.com/) and popular js libraries that provide rich user experience for file uploads. ActiveStorage supports the integration of such libr...
Ivan Raszl replied
Solved

How do I remove Devise::Trackable from my app?
1
Gems / Libraries
I'd like to remove the Trackable module of Devise.
Is it as simple as removing `:trackable` from the `devise` line in `User.rb` and then creating a migration to remove the columns created for the ...
Chris Oliver replied
Solved

Going crazy with console / debugging issue
2
General
In development mode I want errors to hit the browser and specificly the 'better_errors' gem debuging pages.
Currently when I hit an issue my console just hangs and reports the error and the browse...
Dan Tappin replied
Solved

Bootstrap-Sass Not working Entirely
1
Rails
I can tell that bootstrap is working but my navbar is not styled at all. I've tried several things to no avail. Any help would be greatly appreciated. This would be a huge milestone for me if I cou...
Jeremy Hill replied
Solved

ActiveRecord/Routing madness
0
Rails
I'm not sure whats happening here, I feel like I've done this successfully in the past but for some reason my app is crashing all over.
This is quite simple. Ive got a model `Employees` and it has...
Solved

How should I deal with lots of images?
4
Rails
I have a Rails app that lets users select an invoice from a list of invoices. When selected a view of the image of the invoice is displayed with an image of the customer signature overlayed on top....
William Jones replied
Solved

[Administrate] Autocomplete on 'foo: Field::BelongsTo'
2
Gems / Libraries
Hello,
I'm currently doing some tests using Administrate to see if the functionality can be shaped in a way that is convenient for me... Some things have been quite easy and for the most part sati...
Nelson Casanova replied
Solved

"You must use Bundler 2 or greater..." Error
1
Rails
rails -v
`Rails 5.2.3`
ruby -v
`ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]`
bundler -v
`Bundler version 2.0.1`
On creating a new app and trying `rake db:create` i get: `You must use ...
Chris Oliver replied
Solved

Display Posts on Homepage
2
Rails
I am building a social app and I want to display the content of the /posts page (index.html.erb) on the homepage if a user is logged in.
The code below works just fine on the /posts page to displ...
MikeLangford replied
Solved

Access the request object in a helper in a helper test (minitest)
2
Testing
Using Rails 6 and minitest, I am testing a helper method which generates a JWT token to make a request to an external service. Inside the JWT's payload hash, I need the pass the source url. Ideally...
Wout replied
Solved