Ruby on Rails Community Forum
Help configuring Vuetify/stylus on Webpacker
1
Gems / Libraries
Hi, does anyone know how to configure Vuetify with a rails app?
I have webpacker working for basic a vue.js/rails app but I would like to configure it so stylus files compile to css so I can use Vu...
davidlbean replied
caller
7
Ruby
I have trouble solving the following excercise, i was wondering if there is any way in ruby where i can get which method called which i think caller but i havent figured out yet
```
require_relat...
roberto santelices replied
What type of association should I choose...I'm lost in the woods.
1
Rails
I cannot for the life of me figure out the best model association to choose and I've thought myself into a corner. I'm building a site for a client that offers party services for four(4) locations...
eminkel replied
How do I Update a child object, while Creating a Parent object with Fields_for
0
Rails
I currently am creating an object with jQuery file upload, and than inserting a fields_for into the form with the new object.
However, I am unable to update the existing object while creating the...
Logan Houston posted
Gravatar blocked in China, need a workaround
1
General
Gravatar is blocked in China where we have a ton of users. Which means if you pull gravatar from their site in your app, your website will crash/not load for anyone based in China.
So I have two o...
Leonid Medovyy replied
How do I route to the proper controller from the Bootstrap navbar?
1
Rails
Dear All,
My name is Rodolphe, I am a new member of Go Rails. I've fell I love with Rails a year ago! but gosh I so struggle sometimes to comprehend what I'm doing :( . Anyway here is my question...
eminkel replied
What is wrong with my stripe configuration?
6
Gems / Libraries
Stripe isn't working anymore. When trying to create a new charge returns
`the server responded with status 401`
I followed stripes checkout docs to set up stripe. [Stripe checkout](http://stripe...
Zanger02 replied
Display collection_check_box for Has_and_belongs_to_many association
1
Rails
Hi, I want to display a list of check boxes, below is my code,
```
<%= f.collection_check_boxes :job_ids, @current_user.jobs.all, :id, :job_name do |b| %>
<%= b.ch...
Jacob Montgomery replied
How do I take advantage of multiple CPUs on a DigitalOcean droplets?
6
Servers
Hello 👋
I've a two Rails apps hosted on a droplet that has multiple CPUs.
Honstly I don't know what does that mean for the app and if I need to do any thing to take advantage of that or does Rail...
jaems replied
update a model attribute with ujs
0
Javascript
i have a page that displays games(model) with a select box for the game result outcome. Game model `has_one :result, autosave: true` and
I have a unique id for each row in the table based on the g...
Joel posted
Knock error response in login
0
Gems / Libraries
Hiyas i want to response if user dont send `auth[email]` or `auth[password]` give the status 400 and return some json give that fields are required or the feedback the user or password is bad i fol...
Oscar Miguel Amezcua Estrella posted
Is it good practice to use array/jsonb column for a non searchable, single row table?
0
Rails
Hi guys wanted to get some feedback on the way I have been using In my first app I am using both array (text) and jsonb columns. I am using these instead of additional DB tables since the structure...
Luca Rossi posted
An issue with uploading to S3 with jquery file upload
2
Rails
Hey guys, this is driving me crazy. I'm pretty new to rails and I have been following the shrine & S3 videos using the cloud based ide c9. I got basic direct uploads to work flawlessly, but whe...
Taro Singh replied
Bundle Install Doesn't Work
0
Rails
Hi guys,
I seem to be getting an error message when I run bundle install. I'm curious if any of you have had this issue before as well? I tried uninstalling bundler and reinstalling it. I tried di...
Steve posted
Shrine uploading image to google drive
0
Rails
Hi,
I am trying to upload images to google drive using Shrine. I followed instructions from this gem
https://github.com/verynear/shrine-google_drive_storage
I added this gems to my project
```
ge...
Misel Ademi posted
Should i be using jbuilder or AMS
1
Rails
It looks like ams (Active Model Serializers) is heading towards deprecation and is telling users to use jsonapi-rb but should I just jbuilder as it included in the Gemfile for a new rails api 5.1 app?
TL replied
Rails routes.rb (routing with :as or :path)
0
Rails
Hi.
I'm using Rails 2.3.16 and Ruby 1.8.7
I have the next routing:
> map.namespace :controller1 do |c1|
> c1.resources :controller2, :member => { :action1 => :get, :action2 =>...
Hugo A. Gallotto posted
Rails How to create multiple step with list survey questionnaires
2
Rails
I want to create a questionnaire page like this link
When user clicks Next, the page reload with new questions.If user presses Back, the page reload with questions that answered by this user. How ...
Robert Hopman replied
Vue: share the same bootstrap across multiple files
0
Javascript
Hi, guys!
I'm tired to copy-paste the same piece across multiple files.
```
import Vue from 'vue/dist/vue.js'
import VueResource from 'vue-resource'
import TurbolinksAdapter from 'vue-turbolinks'...
CuamckuyKot posted
Payments with Stripe Master Class
5
Rails
Hey Chris - I signed up for your payments with Stripe course and "Creating The Checkout Form With Stripe.js" section is really confusing. Basically video three on the New Stripe JS element does eve...
Chris Oliver replied