Skip to main content
Gravatar
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. ...

Gravatar
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'...

Gravatar
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...

Gravatar
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?

Gravatar
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...

Gravatar
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?

Gravatar
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...

Gravatar
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?

Gravatar
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...

Gravatar
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...

Gravatar
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 ...

Gravatar
How to create a dynamic form for Contest/Giveaway app
General • Asked by Ryan Swapp
I've got two models, Contest (has many entries) and Entry (belongs to contest). When I create a contest I want to be able to add some questions that would be dynamically added to the entry form... ...

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
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...

Gravatar
Markdown/Emoji : how to host images?
Site Feedback • Asked by Boris Baskovec
Hi, I watched https://gorails.com/episodes/markdown-emoji-with-html-pipeline-gem and I'm wondering 2 things : * Where did you find the asset_root of the emoji images? * How do you use your o...

Gravatar
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.

Gravatar
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?

Gravatar
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...