Skip to main content
First argument in form cannot contain nil or be empty
Rails • Asked by Nathan La Barbera
Alright everyone, I would greatly appreciate your help solving this problem. Here is what I'm attempting to do; I have an articles controller and all the related views to create new article posts. ...
4
posts

Multiple Rubies using Rbenv
Ruby • Asked by shakycode
I'm having total brainfog right now with rbenv, so please excuse the newbie question. I have rbenv installed and my global ruby install is `1.9.3-p194` which I've developed multiple apps in. I'...
5
posts

Updating Rails Applications across Rails versions?
Rails • Asked by Andrew Fomera
Question, how do I go about handling the update process for my Rails apps? Example: I setup many apps with Rails 4.0.0 and currently 4.2.0 is out. What's the update process look like? I tried t...
5
posts

Any good regex rules for validation?
General • Asked by Tim Cheung
Currently, i am searching regex rules for validate url. And i am struggled how to build this from scratch. Is anyone have a good resources on this topic?
5
posts

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

Multi-event .ICS file generation?
Rails • Asked by Brent C
Any suggestions for generating an .ICS calendar file containing multiple events from my models? Any experience with Gems(iCalendar vs Ri_cal), or anyone know of good blogposts, etc. detailing the ...
10
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

Subscribe to the newsletter

Join 20,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.