Rails Ruby on Rails Forum
How do I cache a complex JSON response (with a lot of belongs_to associations) to be used by Vue.js in the frontend?
0
Rails
Thanks to Chris nice tutorials, we just rewrote a slow interface in our app to use Vue.js. Now Rails is just generating the JSON to be consumed by Vue.js in the view.
What I'm trying to achieve i...
TL posted
Creating usergroups
1
Rails
I am creating an application where users can belong to groups and those groups can belong to a map.
In order to link a user and group together I created a model called usergroup. I listed the mod...
Chris Oliver replied
Solved
How do I save data from javascript form to rails model
0
Rails
I have a mortgage caluculator written in jquery in my rails app. I would like for the user to enter their information and be able to save the calculations to their profile. Store in a column "morta...
Ryan Bent posted
view pdf file in web application and save the selected content
0
Rails
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...
Mahesh posted
How do I do multiparameter filter
1
Rails
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 paramete...
Dan Frenette replied
How can I have two connections in ActionCable?
0
Rails
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...
Colton Hagan posted
Problem upgrade rails version permission denied rvm folder /bin/rails
0
Rails
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 rails -v, I h...
AlessioVaralta posted
how can i to combine acts_as_commentable_with_threading and notification system ?
0
Rails
i got undefined method `users' for # Did you mean? user user=
comments_controller
```
def create
commentable = commentable_type.constantize.find(params["comment"]["commentable_id"])
@comm...
learningrails posted
how to build custom admin area
1
Rails
Hello everyone i would like to know how to build custom admin inteface for my app or my website??
Jason Ackerman replied
[Newbie] How can i keep data while "add field" or "change fieldname" in model?
1
Rails
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 :english_name ...
Nicolás Bobb replied
Solved
Rails Braintree couldn't update
3
Rails
I'm implementing Braintree Subscription Payment into my rails app. I've encounter some issue when trying to update subscription information in my database. When I make a payment, it's successfully ...
Jacob Montgomery replied
Hey Guys, What is the best way to add tags and categories to a rails blog application?!
1
Rails
I'm trying to build a blog & portfolio app using rails and I want to add tags to make the content organized, I'm trying to add acts_as_taggable_on but I'm struggling with it so I thought I migh...
jaems replied
Solved
DigitalOcean Spaces CORS configuration for AJAX POST requests
0
Rails
Traditional file upload (click upload and than click submit) works fine, but when i try to use the jquery fileupload with AJAX to make a post request to the server, it'll return a CORS error. I sa...
Masud Hossain posted
"Undefined method error" while trying to implement In-App Notification.
0
Rails
Hi people! I'm trying to implement this to an app am building (I want to create the notifications for comments where the comment belongs to episode and episode belongs to story and genre)... When i...
Tolase Kelvin Adegbite posted
Exporting to CSV and including records from related models
0
Rails
I have a user model in my application that has instances of 3 other models and what I am trying to do is to export to CSV all of the user information as well as the information for the other models...
RJ McCollam posted
Profile image gallery provided by database
0
Rails
I'm currently working on profile images for registered users.
I have implemented a basic image profile with the paperclip gem. but i am looking for more and not sure if paperclip can do it or not....
Dim Dire posted
Multi-URL Website Setup/Architecture
0
Rails
Lets say you want to set up a forum site at mainforum.com.
Then you want to add a subdomain where the URL xyz.com would point to something like xyz.mainforum.com. All of xyz.com's forum questions...
Ryan Carter posted
How do i save the initial time a boolean went from false to true
2
Rails
I have a boolean column in my table and a datetime related to it. I want to be able to track down when the boolean initially turns true. In the model I have tried
def example
if boolean_field =...
Dim Dire replied
Solved
How do I save a save a has_many association?
2
Rails
I have setup a service that parses and saves the result of an external API which all works great, however, I can't work out how to save the array of images that need to be saved in a has_many relat...
Morgan replied
Solved
Drag and drop form builder
1
Rails
Is there any drag and drop from builder gem in rails? Please suggest me .
Morgan replied