Rails API backend with Electron Frontend

5
Rails
I'm working on a SaaS platform that will be heavily API driven with a React or Vue front end. But there's a requirement for a desktop app to give the customer something "tangible" to hold in their...
kavuquj678 replied

How do I return an ActivateStorage blob URL in JSON

2
Rails
In our system we are sending webhook to an endpoint with serialized JSON for the object JobApplication. The JobApplication has a resume attached using ActiveStorage. ( has_one_attached :resume) Ho...

Rails App configurations for AWS CodeBuild

1
Rails
I have a rails application that is deployed on `AWS EC2 instance` with `CodePipeline`. I have added the `Build` stage in the pipeline using `AWS CodeBuild` to build test my code. I have no idea ab...
skooby replied

How do i write a test case using rspec for private method

1
Rails
Hello I,m new to rails I am writing test cases for using rspec gem In my controller I have edit function. I have before action for edit function **This is my controller** ``` before_action :aut...
Kasey Sk replied

How do I display errors messages from devise in the same page?

1
Rails
Hello, Chris! I have a rails appp, and I'm using Devise (without simple_form). My registration form is in my homepage, root_path. I followed the tutorial from Devise and I'm able to register users...
sakio replied

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

video about sortable lists

21
Rails
Hi, I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping. I tried to implement the solution by Ryan Bates in...
Chris Oliver replied

Best way to grant a user specific permissions

5
Rails
Trying to determine which way I should handle this. Normal User adds a post to our system, he then has the ability to update and delete this post. In the future he may assign other users the abili...
Brent C replied

problem with like link in nested resource

3
Rails
Hi Chris im doing the episode 'liking posts' i have difficult to do with deep nested resource, my actual nested resources looks: A. Routes: ```ruby resources :users do resources :catalog...
Chris Oliver replied

Performance increase over group_by

6
Rails
How can I write the below operation, being handled by _group_by_ Ruby method, in terms of DB specific query? ```ruby def list_users @search_by_options = [:age, :location, :department, :desig...
arup rakshit replied

How should I model this situation?

2
Rails
I need to store different metrics about various companies. These will be present for every company: * revenue * ebitda * cash * receivables * employees * debt each one has attributes such as...
Chris Oliver replied

Associating Radio Buttons With Specific Field Subsets In Rails

1
Rails
**Situation:** A user enters the name of a venue they want to add. I query an external API and get back a list of possible venues they actually meant, which they'll then confirm. The venue model wi...
Chris Oliver replied

Show each users each post.

1
Rails
I'm trying to create a page where all my users are listed, and every movie they've added to their account. My UserController index def def index @users = User.all if logged_in? ...
Chris Oliver replied

Trouble With Form Objects

6
Rails
I decided to experiment with a form object. ```ruby class Invitation include ActiveModel::Model attr_accessor( :first_name, :last_name, :email, :firm_id, :role ) vali...
Chris Zempel replied

Pundit Scope and has_many through

1
Rails
Hi! I can use a little help to get on the right track. I have 3 models ```ruby class User < ActiveRecord::Base has_many :associations has_many :items, through: :associations end class It...
Chris Oliver replied

Using Pundit to build in a cool gmail-feature

5
Rails
I'm building an app with data set up similar to this: ```ruby class Company < ActiveRecord::Base has_many :products has_many :options, through: :products end class Product < ActiveRecor...
Chris Zempel replied

Bundle issues

2
Rails
Hi, I'm starting the forums tutorials, and I keep get this bundle error. I've tried bundle update and get the same thing: Bundler could not find compatible versions for gem "sprockets": In Gemf...
Chris Oliver replied
Solved

Likes routing error

8
Rails
I am trying to use the Likes tutorial to create Favs for locations, which are nested under stores. Here is the relevant route section ``` resources :stores do resources :locations do r...
Chris Oliver replied

deploy Rails

2
Rails
I following the deploy rails instructions on GoRails. When I tried to install Ruby 2.1.2 with rbenv, I got this error message: "no acceptable c compiler found in $PATH" I solved it by runnin...
Anthony Candaele replied

Deploy Rails guide confusion

2
Rails
Hi, I'm deploying my Rails app, using this website's Deploy Rails guide. Something is not really clear, at the end of the guide, under the section 'Adding The Nginx Host' it says: "Open up /...
Anthony Candaele replied

Learning Ruby on Rails? Join our newsletter.

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