Skip to main content
When to use scoped models?
Rails • Asked by Tang Rufus
In `Refactoring CSV Uploads with ActiveModel::Model Download` , you make a scoped class `User::Import`. When should we use scoped class like this? And, how does it different from `rails genera...
2
posts

Is Devise always a good choice?
Rails Solved • Asked by Ryan Swapp
I am building a contest/promotion app (see my other thread) and am now to the point at which I want to add users. I've used Devise in the past, and have also rolled my own auth system. I like the c...
12
posts

Best way to render a page as a PDF
Gems / Libraries • Asked by Damon Delcoro
I have tried several methods including PRAWN to generate PDF's. It seem there must be a better way. What is you recommendation?
1
post

Hosting static images in subdirectories of Public on nginx
Servers • Asked by Brian Schwartz
Hey Chris (and others), Switched to nginx from Apache and following the deploy guide for Ubuntu 14.04. My app (which is 3.2.X and Ruby 1.9.3) no longer serves the static images I store in public...
12
posts

Dynamic view based on associations
Rails • Asked by shakycode
I'm trying to add some view logic functionality to one of my apps. I have a "run" view that lists all runs and splits them up in a partial between active and pending. Each run also `belongs_to :r...
6
posts

Suggestions for messaging
Rails • Asked by shakycode
I'm working on a couple different apps right now. One is new and one I'm refactoring some new functionality into. I'm looking to add messaging between users in both apps. I'm up in the air on ...
3
posts

Dynamic Active Record Associations?
General • Asked by Brent C
Trying to wrap my head around the best way to handle this. I have an Event Model that has_and_belongs_to_many :event_types in my Event model I currently have a column for price.. However, wh...
8
posts

Radio buttons as actual buttons
CSS • Asked by Charlie Gaines
Hey all, I am trying to convert a form with radio buttons such that the radio buttons are just plain buttons. When selected they should have an active class and register the selected choice. I...
6
posts

Build REST API with Devise
Rails • Asked by Oluwatosin Ekolie
Hi Guys, I've been struggling building an API for an iOS App to communicate with my Rails Web App. For authentication, I'm using Devise. How do I create, update and delete a user through the AP...
2
posts

Devise with additional user fields, nested models / attributes and custom routes
Gems / Libraries • Asked by Dan Tappin
I have posted a few related questions on this but now I am at a road block. I had this system working quite well and then I went to add to it and now I broke it real good! First off I just disc...
4
posts

Suggestion: links open in a new tab
Site Feedback • Asked by Danny Wu
I know this may be a personal preference, but I've always found it more user-friendly (from a student's perspective) to have the links (i.e. your github code and forum) open in a new tab.
2
posts

What's the rationale for making some videos "Pro Episode"?
Site Feedback • Asked by Danny Wu
Just out of curiosity, how do you decide which episode is a "pro" episode vs regular?
2
posts

Wrong Ruby version with Postgres user
Ruby • Asked by Jeff See
I'm having a difficult time understanding the postgres section. I've setup a postgres user but when I type "ruby -v" with that user I get 1.9.3, whereas with the deploy user I get 2.1.3 (the correc...
5
posts

Search functionality for the screencasts
Site Feedback • Asked by harsha vardhan mudumba venkata
It would be great if can search through the screencasts. You will definitely need one once the number of screencasts increase.
9
posts

Updating Nested Form / Model Attributes
Gems / Libraries • Asked by Dan Tappin
I have a nested form on a Devise signup page. The user signs up and then they also fill out their company info (Name , Address etc.). My User and Company model are associated through a Role model...
2
posts

video about sortable lists
Rails • Asked by Anthony Candaele
Hi, I'm not sure if this is the right place to post this issue, but I'm looking for a way in my Rails app to reorder items by drag and dropping. I tried to implement the solution by Ryan Bate...
22
posts

Bootstrap Devise User create, edit and sessions new
CSS • Asked by Jay Killeen
Hi All I had some difficulty following this https://gorails.com/episodes/user-authentication-with-devise - screencast when it came to Bootstrapping devise. Chris' looked like a bit of extra e...
3
posts

Multi Model Sign-up Wizard
Rails • Asked by Dan Tappin
Related to my previous thread (https://gorails.com/forum/structure-guidance-multi-tenancy-authentication-authorization) I plan to have authorization with Devise and some sort of role based system (...
8
posts

Nginx.conf failed
Servers • Asked by Jagger Kyne
I followed line by line in [this tutorial](https://gorails.com/deploy/ubuntu/14.04)to setup my own production server. After Nginx is installed and up and running, I followed the instruction to m...
8
posts

Subdomains
Gems / Libraries • Asked by Jon Moss
Let's say I have a scaffold called 'blogs', and blogs have an attribute called 'subdomain'. I want to have each blog be hosted at a subdomain; let's say I have a blog with a subdomain of 'gorails',...
5
posts

Subscribe to the newsletter

Join 24,647+ 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.