Ruby on Rails Community Forum

Video Idea: Accepting Credit Card Payments

2
Site Feedback
Most web apps need the ability to accept payments from their users (whether they're automated monthly payments or just simple one time payments). It was such a easy process getting going as a Pro ...
Michael Stitt replied

CSV Model method and Summing Hours cleanly.

6
General
I've made a bit of a mess with my timeclock functionality. Basically what I want to do is pass all of the records in a given search range (which I've already written a model method for and it's wo...
shakycode replied

Coffeescript Instantiation

2
Javascript
I've got a bunch of images thumbnails in an admin area. Wherever one appears, I'd like to be able to click on it, open up a modal with a form, and let the attributes of the image be edited from tha...
Chris Oliver replied

Release GoRails platform subscribers or OSS?

2
General
I'm not sure it's a good idea to release GoRails rails application only to subscribers or OSS. If so, we could benefit from some contributions on whatever features that you have planned to add or t...
Samnang Chhun replied

Help needed on how to create spatial indexing

4
General
Presently i have a list of the places what i've looking for and latitude / longitude numbers for them and i come up with somewhere about spatial indexing to search for nearest locations within my ...
sid d replied

Problems with Routes and Forms (Am I a Newb? What am I missing here?)

3
General
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 in ...
shakycode replied

Using scopes to rank users based on votes they get from their posts

2
General
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 I h...
Ariff Munshi replied

rubber:passenger:add_to_pool takes forever

3
Servers
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 after ...
Chris Oliver replied

Multi Site in Rails

3
Rails
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 text s...
Chris Oliver replied

Versioning question.

1
General
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...
Chris Oliver replied

SQL injection attempts, any advice?

4
General
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.tum...
Javier Sanz replied

Code Challenge idea

5
General
Chris and I were talking about starting a challenge/kata exercise for the community in Ruby/Rails. Based off of the idea of [Underhanded-C](http://www.underhanded-c.org/), we could post a weekly, ...
Chris Oliver replied

Restrict Rails Model To Create after Certain Condition

1
General
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 ?
Chris Oliver replied

filter child record by the parent.

10
Rails
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...
Chris Oliver replied

Multiple objects in form and controller, hitting a wall.

0
General
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 a...
shakycode posted

Refile S3, presigned, multiple files + Cloudfront - generating images via javascript

8
General
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 to...
Dean Fields replied

Ransack Scoping issues

16
General
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...
alexander kehaya replied

Coffeescript Polling Issues

6
Javascript
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 (...
shakycode replied

Where to put my Big Ole' Array

5
Rails
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...
shakycode replied

HTTParty and trycelery.com API

2
General
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 accomplish ...
Edward Bishop replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.