I have an app that has a resource called 'pins'. I want to add upvoting, and possibly downvoting, to the pins, so that I can rank them on the site Sort of like Reddit karma. I was thinking that an ...
So I have a Post model and a Category model and a User model.
So a user can have many posts and a post can have many categories. So returning a group of posts is very easy, however a post can h...
I have a ton of many-to-many relationships in a CMS I built for work. I am currently using [Select2 3.5.3](http://select2.github.io/select2/) to assign these relationships. This all works well. ...
Hi Chris,
Not really a rails question, but I just wanted to see if you could add a video speed feature as I can go through your tutorials at half the time.
Cheers,
Chris
It's been a few months I follow you Chris and I'd like to say **thank you** for all what you've done.
I often watch your episodes and a question got out of my mind, so I have to ask.
What do ...
Lets say we have a Company model which accepts_nested_attributes_for User (devise Model)
How do we Save both a company and User model having that a Company has_many :users and a User belongs to ...
Scenario:
Implement a registration with multiple steps and after all is complete, display "We will approve your application" at the end and wait when an internal admin (only to owners of the app) ...
Hi guys ... and girls.
I am interested in any advanced rails materials you might know about that are actually good. Most of the stuff is beginner level and something advanced is hard to come by....
working with pundit gem. Is it possible to apply the same rule to nested resources? if show is not allowed in lecture_policy then show in lesson_policy should not be allowed too.
```
Lecture
...
Hi,
I just successfully deployed my Rails app to a Digital Ocean VPS, following the Deploy Rails guide on this website. Many thanks go to Chris Oliver and James Dullaghan for their help and pa...
Hi I'd like to create a music catalog online of my music, where people can have a preview of few secs, and then can download them to be available offline but always by the same web page, somethin...
So, I am making an application that is listing multiple businesses. I am wanting to have a label that displays open or closed for each individual business. Could anyone give me guidance on how to m...
Hi, I have a question about which gem is better, devise_token_auth or devise_token_authenticatable?. I see that devise_token_auth was update recently while the other not.
Hi,
on my index page i want to place a button for each record where i can switch the state from active to inactive or from inactive to active.
the button should change without refreshing the pa...
Hi,
i have the following models:
users, markets, assignments, products, sales,
a user gets an assignment, and then he should enter his sales for the assignment.
i have a sales form with t...
I'll try to keep this as brief as possible.
I have a Rails app which is a static codebase and runs on 9 different servers all the same db schema but of course with different values.
I wrote ...
Hi,
What do you think is the best way to handle money in rails?
At the moment i use a decimal field with a precision if 16 and a scale of 2.
the problem is that we use the comma as a decimal...