Skip to main content
Dealing with Recursive Models
General • Asked by sid d
User wants to search for classes nearby according to date similar to [classpass](http://joliepagaille.com/wp-content/uploads/2014/11/Picture-1.png) ### Backend Form fields for creating class by...
2
posts

Multiple objects in form and controller, hitting a wall.
General • Asked by shakycode
So I'm working on a old version of a legacy app Chris and I paired on, trying to refactor some functionality and am hitting a wall. I currently have some basic paging functionality which creates...
1
post

Ransack Scoping issues
General • Asked by alexander kehaya
Hey everyone, Just posted this question to stack overflow but thought I'd give it a try hear. I've been trying to figure out how to scope ransack searching for a couple of weeks but haven't figured...
17
posts

Refile S3, presigned, multiple files + Cloudfront - generating images via javascript
General • Asked by Dean Fields
Hello, I have followed along with both videos, but have come up with a little issue while attempting to generate a thumbnail within the success event. It seems to be automatically requiring the ...
9
posts

Add Profile page for users
Rails Solved • Asked by Rahul Lakhaney
Hello, Before i begin with my question, i would like to introduce myself. So i was introduced to ruby on rails via a friend around a couple of months back, when i decided to enroll myself with o...
4
posts

Coffeescript Polling Issues
Javascript • Asked by Chris Zempel
I'd like to reload an iframe when the images needed to generate the preview it will display are cached by background workers. However, I can't figure out how to get setTimeout() to work correctly (...
7
posts

New Users Only Created by Admin User
Gems / Libraries • Asked by Michael Stitt
I'm building an internal app for my company that contains data from various sources (e.g. web analytics, server logs, etc.). It's hosted on an EC2 instance with a DNS of "reports.example.com". Ri...
4
posts

HTTParty and trycelery.com API
General • Asked by Edward Bishop
Ok. I have tried for 3 days and I'm not getting anywhere. I am building a small kickstarter style campaign module for several products that will be run through Celery. What I want to accomplis...
3
posts

Where to put my Big Ole' Array
Rails • Asked by Brent C
I have an array of states and abbreviations that I check when a user is performing a search. If the items is not in the array it moves on to using a geocoded service. I do the initial check current...
6
posts

Single Table Inheritance: Good spot or not?
Rails • Asked by Brian Schwartz
I have two simple models I'm about to create in an existing Rails app. One is a `NAICSCode` which has the following attributes: `company_id`, `code`, `name`, and `description`, the other is `SICCo...
4
posts

How to build a web scraper using Ruby...
Ruby • Asked by Danny Wu
Hello Chris - can you please teach us how to build a web scraper using Ruby to collect data from the web?
2
posts

CoffeeScript check if a checkbox is checked?
Javascript • Asked by shakycode
I have some simple CoffeeScript that toggles a div based off of if a checkbox is checked in a Rails form. The CoffeeScript looks like this: ``` $("#bill_patient_checkbox").change -> ...
11
posts

Flexible Nested Attributes
Gems / Libraries • Asked by Terence Devine
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
6
posts

DateTime causes StackError when config.time_zone set.
Rails • Asked by Wouter van den Beld
Hi, I have a strange problem When i do the following method with no config.time_zone set in the application.rb it works. ```ruby def send_assignment @assignment = Assignment.find(param...
6
posts

ActiveRecord AssociationType Mismatch
Rails • Asked by shakycode
I have a Rails 3.2.21 app where I'm adding a simple form/collection_select field in my form. When selecting an object from the dropdown (or leaving it blank) I get the following error: ``` Act...
2
posts

Recurring Events
Rails • Asked by sid d
```ruby # Model def Event WEEKDAYS = ['sunday', 'monday', 'wednesday', 'thursday', 'friday', 'saturday'] end # Migration create_table :events do |t| t.column recurring, default: fal...
3
posts

Active Record Associations
Rails • Asked by sid d
```ruby def partner has_many :centers end def center has_and_belongs_to_many :classes belongs_to :partner end def fpclass has_and_belongs_to_many :centers end ``` - I'd like...
3
posts

Ideas for building a Wiki in my app
General • Asked by Jay Killeen
My users are all internal customers of our business. They are pretty information poor when it comes to our systems and processes and our company intranet is not very feature rich. So I'd like to bu...
13
posts

Refile :fill does not work for me
Gems / Libraries • Asked by Wesly Mezarina
I have the refile gem connected with aws by following the instruction on their github. For an image i would get something like /attachments/store/78b928c7897e3b12de80cf1ffdfdfdfdf/image.jpg ...
2
posts

Links not working on production server
Servers • Asked by Edward Bishop
I'm at a loss. After finally successfully deploying using Capistrano, and finally figuring out why my assets were missing, I have another issue. I have a link that point to static pages (contact)...
10
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.