Ruby on Rails Community Forum

Eager loading with Gem Mailboxer

0
Gems / Libraries
Hello everyone, I have a User model which act_as_messageable using the Mailboxer gem. In my users#index view, I would like to add a link for each user to the first user conversation Right now, I ...
Thomas M posted

What's the best way to track file downloads (stats)?

1
General
Thanks to the videos here, I've implemented file upload with Shrine in my app. They are audio files, stored on s3, and made available to the public. I'd like to track the downloads and provide my ...
Chris Oliver replied

Simpleform association with images!

6
Rails
Hi Chris, I'm wondering if you could help. I'm currently building a form that'll send out a SMS with twilio, and i'm looking to send details of a vehicle out at the same time, specifically the ima...
Martin McDermid replied
Solved

Bootstrap 4 modal form in rails disables submit button on ajax refresh

1
Rails
I've been struggling with this all day. Please see the link below. [Bootstrap 4 modal form in rails disables submit button on ajax refresh](https://stackoverflow.com/questions/44489517/bootstrap-...
nynhex replied
Solved

Creating drop down of customers with link to show action

0
Rails
I am transferring an MS Access db to Rails and I need to be able to have a drop down list of customers (last_name, first_name, id) that will allow me to select a customer and generate the customer ...
John Stegman posted

Processing by EquipmentController#show as */*

0
Rails
I'm getting this response when I send a jquery get request to render the show page for a piece of equipment - or any other show page for any object in the rails app for that matter (customer, warra...
John Stegman posted

Call Api and Auto-Reload div.

1
Rails
Hello! I want to setup a script that calls api from various webistes and retrieve data every n seconds. I'd like to setup a page where data(numbers) are showing auto-reload constantly. Which ...
Rodrigo replied

Devise authentication and API

0
Rails
I'm working on JSON REST API for an existing Rails application. Authentication is currently implemented with Devise. What could be potential pros and cons of using cookie-based user sessions for AP...
Alex Musayev posted

How do I perform a Search without page reload (I think I need Angular/Turbolinks)

0
Javascript
Hi Everyone, I am trying to make my app a SPA app, and accomplish most of this with erb templates, which I know is not ideal, but it works for now. I need help with performing a search and filt...
Logan Houston posted

Sponsored Post Model?

0
Rails
i want to build a feature where on certain pages I could highlight different posts or jobs. Think of it like a sponsored google ad at the top of the rankings or a sponsored job post. It should be ...
Ketan Anjaria posted

How Do I Search Against Records Saved In Memory, and Not the Database?

0
Rails
# Problem I have an event that starts Jan 1, 2017 and repeats every day until Dec 31, 2017. If I search for an event (using [ransack](https://github.com/activerecord-hackery/ransack)) that starts a...
Steve Polito posted

How Do I Create an App Where Each User Has A Separate Table

3
Databases
Hi, I want to create a web app which is a simple HR SaaS. Each user/company which registers will have get a separate table to upload list of employees. In terms of autorization a user/company can ...
Tabish Iqbal replied
Solved

My first 3 hour project for job application

3
General
Hello, I made it past the phone screening and the next stage is that a robot will email me a project and I have a three hour window to complete it and then email them the results. This is for a R...
Chris Oliver replied

Recurring Select Accepts "Null" As a Valid Rule

2
Gems / Libraries
I followed the Chris' excellent tutorial on [Recurring events with the ice_cube gem](https://gorails.com/episodes/recurring-events?autoplay=1). However, I was running into an issue when the value ...
Francisco Quinones replied

How to build options on select tag with VueJS?

1
Javascript
For example, let's move to episode "using VueJS for Nested Forms in Rails" and adding model called Position, which association with a Player (belongs_to). And how to implement select tag for choos...
Dmitrii Amelchenko replied
Solved

Question BEST_IN_PLACE

1
Gems / Libraries
In Rails 5 versions is it recommended to use the gem Best_in_place? What other alternative is there?
Tabish Iqbal replied

[HATCH] - Deleting separate applications on the same server?

6
Databases
I've been deploying several toy apps on the same server, but after I'm finished with them I would love to easily be available to delete them using Hatch's interface, instead of having to SSH into t...
Scott Johnson replied
Solved

Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html?

1
Rails
I just finished going over Chris's two great railscasts dealing with search. However, I wanted to put my search bar on my navbar so that whenever someone searches the results I will be taken to my...
Omar Khedr replied
Solved

Uploading a file from remote url using shrine?

3
Gems / Libraries
Hi, I need to upload a remote file to my S3 bucket (e.g., I get a link to a pdf e-ticket and I need to upload it from its location). In addition (as a bonus) what's the best way to allow users to d...
Roy Zinn replied
Solved

How do I create a Zapier integration with a rails app?

3
Rails
I've read a lot about this and I understand that it involves REST webhooks, but I'm struggling to get it to actual work. I'm not sure how to actually get my app to tell Zapier that something has be...
Alan Vardy replied

Learning Ruby on Rails? Join our newsletter.

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