Ruby on Rails Community Forum
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
Different Notification Types By Type
4
Rails
I am making a notification system and using the great tutorial on here to do it. I am going to have a few different channels that a notification can be sent out with: email, web push, text message,...
Steve Quatrani replied
Solved
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
How do I resolve this error with Stripe checkout on wizard page via wicked gem?
4
Rails
Right now I get this error message when the submit.html.erb loads: **Cannot charge a customer that has no active card.**
I want to understand how I can improve my controller. The goal is to not ha...
Robert Hopman replied
Solved
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
Issues with paperclip gem on Windows 8
2
Rails
Hi, i am new to rails(**using Windows 8, rails v = 5.1.4 & ruby v= 2.2.6**) and i am having issues with image uploading using paperclip gem, i saw the documentation on github & manually ins...
Pranay Singh replied
Having trouble figuring out net/http and API calls.
3
Rails
Hi folks,
I need to make a number of calls to an API, some of which are GET requests and some of which are PUT requests. I've tried to make a common function since there's a bunch of security stuf...
Jacob Montgomery replied
Should scopes be seperated out to allow chaining or be specific to the what you are trying to do?
4
Rails
I am trying to write an internal tender application and am having trouble figuring out the best approach for writing a scope.
I have the following models
```
class Tender < ApplicationRecord
...
Jacob Montgomery replied
Architecture for subscription with multiple users per account
1
Rails
Hi all!
I developed an app that uses Apartment for multitenancy, Devise for authentication and Pundit for auth. Each tenant is represented by a business (business model), where the id is also the ...
Luca Rossi replied
Are there any episodes or series on CMS related gems ?
5
General
Hi,
I have to build CMS for one of my clients. I would like to know your suggestions also please let me know if we have any related videos here.
Thanks,
Pardha
Matt Walston replied
Is it safe to switch Apartment tenant using session variable to pass the tenant id?
2
Rails
Hello,
I know that Rails uses a digest to secure session data, however I wanted to ask whether a better solution could be adopted.
I am currently loading the tenant in apartment.rb using a tenant...
Luca Rossi replied
ElasticSearch connection refused
3
Gems / Libraries
I am going through the ElasticSearch with searchkick video and I have installed ElasticSearch on my ubuntu box as well as installed searckick and added searckick to my model. Everytime I try to re...
RJ McCollam replied
Solved
Form not working for polymorphic has_many through association
1
Rails
In my Rails 5.1 app I am trying to create a tagging system from scratch. I have been using the *Comments with Polymorphic Associations* episode as a template.
I want `Tags` to be a polymorphic `ha...
Casey Provost replied