Ruby on Rails Community Forum

Multitenancy with Apartment Gem

8
General
Hi Chris, I am using Postgresql and apartment gem and my database has many views and functions. so I am using config.use_schemas = true config.use_sql = true to use pg_dump but when I run migrat...

rails migration warnings

2
Rails
When I run rails db:migration it works but there will warnings like below.. /home/paritech/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapter...

Ruby on Rails 5.1 & Vue.js 2.4.x – Testing with Karma, Jasmine – How to install? [bounty on stackoverflow]

1
Testing
I asked the same Question on [stackoverflow](https://stackoverflow.com/questions/46194455/ruby-on-rails-5-1-vue-js-2-4-x-testing-with-karma-jasmine-how-to-install) I have Rails 5.1.x and Vue.js 2....
Pascal K replied

Dealing with Recursive Models

1
General
User wants to search for classes nearby according to date similar to [classpass](http://joliepagaille.com/wp-content/uploads/2014/11/Picture-1.png) ### Backend Form fields for creating class by ad...

Attempting to generate a URL from non-sanitized Rails 5 upgrade

0
Rails
Hi so Im upgrading my rails 4 app to rails 5. I have a link with foo _path(params.merge(format: "pdf")) Im getting the non-sanitized error. Im looking for the correct way of permiting the this p...
Francisco Quinones posted

Manage multiple rails project with different versions of rails and ruby | RVM vs Rbenv | Bundler

0
Rails
I am new to rails so I have a lot to ask and I find out there is a huge debate on ruby version managers i.e RVM and Rbenv, and there is a bundler too. Now all the articles I have read are old and t...
usama akram posted

Deploying error: The dependencies in your gemfile changed

0
Rails
Hello Devs, I am on my way to deploy a rails app, but I got this error: ``` ** DEPLOY FAILED ** Refer to log/capistrano.log for details. Here are the last 20 lines: DEBUG [504959b4] Install mis...
ykostov posted

2021 Must Knows

0
General
I was wondering, and this may have been covered previously, but I'll ask anyway. What are the must know things a rails dev should be familiar with, new techniques, etc. Sites like this are fantasti...
Tony Serkis posted

Precompile error on hatchbox with yarn 2

1
Rails
After upgrading to yarn 2, I get the following error when deploying to hatchbox: -----> Precompiling assets... Unknown Syntax Error: Unsupported option name ("--no-progress"). $ yarn install [...
Matthias Orgler replied

Using Activestorage how do I restrict a file that can only be accessed through links and not outside the website?

3
Rails
So if you copy the link of the rails blob and paste it ( incognito ) it basically downloads the file how is this remedied?

Faraday::SSLError

2
Rails
ran into this error while using facebook to login on a project does anyone know how to fix this

Integrating Braintree (and PayPal) Discussion

8
General
Chris, I would be interested in the cancellation and modification of cards setup if you have time. Thanks!

How do I constantly monitor a Rails database & then action an alert?

0
Tips
How do I constantly monitor a Rails database & then action an alert? eg. I want the user to save an alert in the backend. The backend would check an external API and compare the price in the DB...
Christopher Lam posted

how i upload multiple images in mongoid using rails ?

0
Ruby
i am using mongoid but active storage is not supported in mongoid so how i upload multiple images ? @Chris Oliver
joshi109 posted

Hotwire turbo stream update_or_[append/prepend] ?

1
Rails
Given a list of items that could be visible or not on a page (like a paginated list ), how is the best way to send from the server an update or append to that list? I Mean, update element when the ...
Miguel Michelson Martinez replied

Law of Demeter - Question

4
Rails
Had a question about how to refactor some of my code. I've been reading some books AntiPatterns & Refactoring. Given the code block here, should the method here be in Evaluation or Skill? If...
David McDonald replied

Clean Javascript Code Using Data-Behavior On The Frontend Discussion

11
General
is data-behavior just semantics or could we use anything?

Spawn process and send data to STDIN when data avilable

0
Ruby
I want to spawn a process (golang binary), capture its STDOUT and have a reference to STDIN which i can send to at any time. In my case i am getting data in via Websockets and want to pass them to ...
Drazen posted

Setup Ubuntu 20.04 Focal Fossa Discussion

0
General

Moving from STI to roles

1
Rails
Finding it tricky to move from STI (Single Table Inheritance) to user roles because associations between the various user roles to other resources mean different things to different user types. `T...

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.