Skip to main content
How do I implement voting in Rails?
General • Asked by Karl Coelho
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 ...
3
posts

How to display multiple models in the same infinite scroll
General • Asked by Aaron Mills
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...
3
posts

How do I allow a multi-select to be sortable?
General • Asked by Thomas Bush
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. ...
1
post

Speed up videos
General • Asked by Chris Ma
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
2
posts

What do you think about this ?
General • Asked by Maxime Orefice
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 ...
5
posts

Build a Devise Model in another controller
Gems / Libraries • Asked by Roman Storm
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 ...
5
posts

Multi form devise registration setup with admin approval
Gems / Libraries • Asked by Roman Storm
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) ...
3
posts

Advanced Rails books and materials
General • Asked by Andrei Crudu
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....
1
post

Pundit: How to apply the same policy to nested resources
General • Asked by Adrien Nhem
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 ...
4
posts

How to manually manupulate data in the production database?
General • Asked by Anthony Candaele
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...
7
posts

how to play or download a song
General • Asked by corrado tuccitto
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...
2
posts

how scrabe data every day
General • Asked by corrado tuccitto
how can I schedule to gather data with nokogiri and store it(only what has changed) in a db every morning?
9
posts

Is there an easy way to display open or closed based on time of day?
General • Asked by Stefan Sanchez
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...
2
posts

API TOKEN DEVISE
Gems / Libraries • Asked by Saul Felipe Ramirez
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.
8
posts

Switch state of boolean field
General • Asked by Benny Maas
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...
4
posts

Autocomplete a form field
General • Asked by Benny Maas
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...
3
posts

¿How make I to upload multiple images with refile?
General • Asked by Saul Felipe Ramirez
¿How make I to upload multiple images with refile?
3
posts

Getting data from one Rails app to another
General • Asked by shakycode
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 ...
1
post

Handle money in Rails
Rails • Asked by Wouter van den Beld
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...
2
posts

Bug in search
General • Asked by Jerry Clinesmith
If you search for the word "type", it's causing a 500 error. Just wanted to let you know. Thanks for the site! Jerry
2
posts

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.