
Active Storage and Subdomains
3
Rails
I have a simple app for photos and wanted to make it a subdomain of a domain I own and use. It would be https://photos.com This seems to break active storage however. Has anyone else ran into a sim...
Chris Oliver replied
Solved

How do I send params from Rails Ajax to the controller???
5
Rails
I am trying to send all the params from the form into my controller after a promise
my params include :name , :email , :address_line1, :address_city, :address_state, :address_zipcode, :address_cou...
Chris Oliver replied
Solved

How to set up Email newsletters
0
Rails
So this is less a question on how to set up integration with sendgrid or mailchimp, and more along the lines of how would you go about creating an admin setup to create dynamic newsletters without ...
Alex Deering posted

hit
1
Rails
xx
ff replied
Solved

rails new demo without getting a error message?
1
Rails
I did the basic installtion from a book I'm reading and i get the following error message when i type in the command `rails new demo` in my terminal.
```
Michaels-MacBook-Air:~ michaeljonathanamay...
Michael Amay replied

Any way to reduce complexity passing JSON to Vue.js component?
0
Rails
Hi,
I'm trying to figure out a way to reduce the complexity of passing a JSON to a Vue.js component.
Currently I've got something like this placed on a model scope,
```
scope :to_vue, -> (id)...
Eduard Garcia posted

how can i access boolean value to other controller in rails
0
Rails
i have ProjectSite model and ManagerRemark model related to many to one association. my MangerRemark model remark string field and decision boolean value true and false. i want to access that boole...
anuj posted

How do you figure out what and how to load the css/scss assets with Webpacker
0
Rails
For Bootstrap you added to `application.scss `(I may have named my folder differently:
```
import "bootstrap"
import 'bootstrap/dist/js/bootstrap'
```
and
```
@import '../css/bootstrap_custom';
@i...
Greg S posted

Error installing gem pg on Mac with Postgress.app
0
Rails
The pg gem will not install. Getting:
```
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/pg-1.1.4/ext
/System/Libra...
John Petit posted

How to save DOM elements in the database?
2
Rails
Hi
I'm working on my very first "real" Rails project, and it might be a bit to advanced for a newbie like me. But here we go (sorry for the long and confusing rumble).
**Goal:** I want to save the...
Magnus von Bromsen replied

Problem in uninstalling rails and Ruby from ubuntu 16.
0
Rails
Is there any way to uninstall rails 6.0.1 from ubuntu 16 and ruby as well because i have installed ruby through rbenv. Please suggest any standard way to uninstall it. i am beginner in rails.
Dilip posted

Model not updated correctly on drag (Apartment + Vue + Rails 6)
0
Rails
**Stack used**: Rails 6
**Gems used**: Apartment, Devise, Vue, vuedraggable, acts_as_list
Hi guys! I'm trying to create a "Trello" type app (following the Vue.js Trello Clone in Rails screencast)...
Alan Dew posted

Use the helper methods that are declared in controller and has default params in view spec ?
1
Rails
Here's the problem:
I have a Controller (say ExampleController) which has a method "sort_column" and it has the following code :
Example.column_names.include?(params[:sort]) ? params[:sort] : 'titl...
Chris Oliver replied

Why doesn't my app show on my browser when running locally?
0
Rails
I'm new to rails and trying to display a very simple app from codecademy which results in this error on my browser:
PagesController#welcome is missing a template for request formats: text/html
NO...
vkuz91 posted

How do I get avatar.variant(size: "") to work using aws on production?
0
Rails
I can't get variant(size: "") to work while using a cloud provider in production.
I need to user.avatar.service_url.split("?").first to get the right path for the img but when I do this, I can't u...
Luis Daniel Fonseca posted

Skip Stripe checkout for user with certain conditions
1
Rails
Any ideas on how one would go about adding [this](https://gorails.com/episodes/referral-program-from-scratch?autoplay=1) to stripe checkout flow? I would like the referree to have a free post inste...
Chris Oliver replied

How can I add third party plugin in rails 6?
0
Rails
My application.html.erb looks like this. I just want to remove all cloudfare(cdnjs) external link from application.html.erb. Instead of that I just want to use it in application.js . Because I dont...
Siva Ganesh posted

Devise on Heroku
0
Rails
Hello, I have been implementing device JWT with rails 6.0 API . I have used this callback to protect from fogery requests, On the applicationController
```
protect_from_forgery unless: -> { requ...
Moses Gathuku posted
Solved

How do construct remember me after login ?
0
Rails
In my login-in form in have a params 'remember me' . How do i read its value in controller . biggest problem i m facing right now.
```
Log In
<%= form_with url: sessions_path...
Minimalstics posted

Markdown with image and aws support
0
Rails
Hi,
I have integrated markdown and active storage in my rails application. Although I am sttruggling to upload markdown images to aws s3.
Any help would be appreciated.
Shabbir
shabbir saifee posted