Skip to main content
Gravatar
Polymorphic, STI, or something else?
Databases • Asked by Billy Purdy
I am working on an app for a real estate company. There will be 2 resources, Listings and Rentals. They will have a lot of the same data (address, beds, baths, sqft, etc.) but also different (r...

Gravatar
view pdf file in web application and save the selected content
Rails • Asked by Mahesh
In my Ruby on Rails web application, an admin upload the pdf files from back-end, we need to save the pdf files.When it comes to front-end user can view the admin downloaded pdf file and he can sel...

Gravatar
How do i track view count of different div blocks on single page while scrolling without clicking them.
General • Asked by Malav Desai
I have many cards (div blocks) on my single page application. I want to track view counts when user scroll through this page. Means whenever one card visible on screen or in screen viewport area wh...

Gravatar
How do i track view count of different div blocks on single page while scrolling without clicking them.
Gems / Libraries • Asked by Malav Desai
I have many cards (div blocks) on my single page application. I want to track view counts when user scroll through this page. Means whenever one card visible on screen or in screen viewport area wh...

Gravatar
How do I add opensearch to a Rails app
General • Asked by Dan Frenette
I'm talking about the feature in chrome, it's present on GoRails, where if you type the URL of the site and hit Tab, you're able to search the site from the Chrome omnibar. I've gotten this to work...

Gravatar
How add Push Api notification with Chatroom?
Javascript • Asked by Nikola Okonesh
How add Push Api notification with Chatrooms? Thanks!

Gravatar
How do I do multiparameter filter
Rails • Asked by Jaroslav Horák
Hi, I have some sort of e-shop. I have Category model and Product model. Product has some parameters like color, material, price etc. My question is what approach to use to filter by these parame...

Gravatar
How do I create an attendance form for student attendance?
General Solved • Asked by Ernesto Gutierrez
I've been racking my brain and just need to ask for help on the creating this function in my app. **Scope:** simple app for non-profit for tracking student attendance What I've done: * created...

Gravatar
How to create many subcategories in rails?
Rails Solved • Asked by Nicolás Bobb
Without using any gems how do I do this in rails? I see the gem Ancestry (https://github.com/stefankroes/ancestry) ``` Main Category Sub Category Sub Category Sub-sub Category Main Cate...

Gravatar
What are your goals for 2018?
General • Asked by Alan Reid
Hello all, Last year I posted a similar post, and it was really popular. So first off how many of your goals did you complete? Here's the [previous post](https://gorails.com/forum/what-are-your-g...

Gravatar
How can I have two connections in ActionCable?
Rails • Asked by Colton Hagan
I have Notifications Channel and a Pings Channel. Notifications are identified by my devise modal Agents. But my Pings Channel needs to be identified by my other devise modal, Users. Heres some sud...

Gravatar
bad URI(is not URI?): Gotham Bold Regular.ttf error, how to fix?
Rails • Asked by Colter Roche
I followed all the steps to add a fonts folder, register it with rails, and declare the @font-face in my .scss, but the same error keeps occuring. I am using rails 5.1.4, with the foundation frame...

Gravatar
Problem upgrade rails version permission denied rvm folder /bin/rails
Rails • Asked by AlessioVaralta
Hi, I try to install rails 3.2.20 with ruby2.2.0. So with rvm I make rvm install 2.2.0 After I make gem install rails -v 3.2.20 After rvm use default ruby-2.2.2 But when I try r...

Gravatar
I'm having issues with in-app notifications on my App
Rails • Asked by Tolase Kelvin Adegbite
Hello! Can someone please enlighten me on how to create notifications (In-app) for this type of routes I want to display notifications when comments are made on episodes. This worked well when i d...

Gravatar
Searchick filter with scope
Gems / Libraries Solved • Asked by Christophe Estanol
Has anybody used searchkick with a scoped model? I have an `Article` model with `scope :published, ->{ where(status: "Published") }`. So In my `ArticleController` I did the following: ``` qu...

Gravatar
how can i to combine acts_as_commentable_with_threading and notification system ?
Rails • Asked by learningrails
i got undefined method `users' for #<Comment:0x007fb91b018818> Did you mean? user user= comments_controller ``` def create commentable = commentable_type.constantize.find(params["commen...

Gravatar
What is the method used today to give permissions with Rails?
Gems / Libraries • Asked by Nicolás Bobb
In many projects created with Rails I see that they do not use any gem to give permissions, for example Gitlab: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/Gemfile What method is used...

Gravatar
how to build custom admin area
Rails • Asked by mauriceaney
Hello everyone i would like to know how to build custom admin inteface for my app or my website??

Gravatar
[Newbie] How can i keep data while "add field" or "change fieldname" in model?
Rails Solved • Asked by Simple is Best
sorry my english. if my user model have ``` t.string :name t.string :age ``` and data ``` 1 : John / 34 2 : Tom / 25 ``` if I want to add a field and change field name ``` t.string...

Gravatar
How do I deploy to staging or production environments the stack Vue+Rails
Javascript • Asked by Raimon Fernandez Sirera
When I deploy an application using webpacker + vue + rails, and the template of the main component is on the rails view I get a vue error regarding security. Error: ``` [Vue warn]: It seems yo...