Skip to main content
Gravatar
Problems with Routes and Forms (Am I a Newb? What am I missing here?)
General • Asked by shakycode
I'm working on my TimeClock functionality for a legacy Rails 3.2.21 app and am running into problems with simple crud type forms. I'm trying to create a new ClockEvent entry using a basic form i...

Gravatar
rubber:passenger:add_to_pool takes forever
Servers • Asked by Michael Victor
I'm using Rubber 3.1.0 with Capistrano 2.15.5 When I try to deploy my app(default rails-devise-pundit) to production on EC2, it goes on perfectly till command finished in 2849ms triggering a...

Gravatar
Multi Site in Rails
Rails • Asked by rabin prithvi
Have a Rails app which acts as a API client. Request may come from 6 different domains. Each site will have same layout. Difference between each site would be the theme color , logo and the tex...

Gravatar
Using scopes to rank users based on votes they get from their posts
General • Asked by Ariff Munshi
Hi all, I posted this question on Stack Overflow for a problem I am stuck at. http://stackoverflow.com/questions/30805987/using-scopes-to-order-users-with-most-votes-for-specific-time-periods ...

Gravatar
Versioning question.
General • Asked by Brent C
I have a website where I would like to offer users the ability to edit the public facing data. However, after the data is edited I need to place the model in que for review. If edits are acceptable...

Gravatar
filter child record by the parent.
Rails • Asked by Francisco Quinones
Info: My models and association. I got a ServiceUser ( Manager ) model,User model, ServiceCompany model, Employee model and a Project model. A ServiceCompany can have many projects, employees and m...

Gravatar
Idea for TimeClock Need Advice
General • Asked by shakycode
I'm wanting to integrate Time Clock functionality into an existing Rails 3.2.21 app. I think I have an idea of how to do this, but I need some advice on the how to handle different scenarios. S...

Gravatar
SQL injection attempts, any advice?
General • Asked by Javier Sanz
Hi there, In the logs of Rollbar for my app [petithacks.com](http://petithacks.com), I have seen in the past 2 days attempts like the ones in the image ![SQL injection attempts](http://static....

Gravatar
Restrict Rails Model To Create after Certain Condition
General • Asked by sid d
Requirement:: We have implemented Passport where any user can subscribe to this passport. I want to restrict subscriptions after 20 subscriptions happen. How can we go with this. Any ideas ?

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

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

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

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

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

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

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

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

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

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

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