Ruby on Rails Community Forum

Deployment Question

0
Servers
[there was an error on original submission of this post, so I did it again and duplicated it. this one can be deleted!] [Please see this post](https://gorails.com/forum/deployment-question)
Chris Zempel posted

Deployment Question

6
Servers
Hey, debugging a deployment script I didn't set up and running into an error that I'm not making any headway with via StackOverflow or general Googling. Here's what it is: ``` bundle exec cap sta...
Chris Zempel replied

Best way to measure distance between current user's location and place location?

4
General
I'm building an app similar to Yelp. The user should have a current location (taken automatically) and a chosen location (defaulted to current location). Each place should also have a location. I w...
Matias Fernandez replied

Best way to create or save a record (with associations) as a template

10
General
I'm curious as to what people think is the best to create a new record, or save an existing record... as a template. The template would be used as a starting point to duplicate that record easily ...
tquill replied

About In-App Navbar Notifications

2
General
Chris, thanks for this one. Notifications work like a charm. I was just wondering... How do I create different JSONs for different models? ``` json.array! @notifications do |notification| json...
Christophe Estanol replied
Solved

Is it possible to incorporate React + Redux into existing Rails application?

11
Javascript
I have been working on creating a Medium clone to learn Ruby on Rails. It started out as just a plain Rails app but as the app evolved I started using React in the front end (using react-rails gem)...
Aaron replied

Building a multi-location app in rails

1
General
Hi! I am trying to build a multi-location app from a client. I have tried dabbling with Apartment and other types of multitenancy but didn't receive a proper result. The app should have domains f...
Chris Oliver replied

integrating analytics

5
General
Hi Chris! I see GoRails is using segment.io for analytics. Could you recommend me a good resource on integrating segment with GA and mixpanel? There are too many approaches like javascript version...
Chris Oliver replied

JRuby on Rails and Java dependency management

1
General
I've been searching online for a good way to manage Java dependencies in a JRuby on Rails app. I am interested in a way to structure the initial setup. I will have to use quite a lot of machine lea...
Chris Oliver replied

GoRails speed

8
Site Feedback
Hi Chris, It would be nice if you could share with us what techniques you use to make this site so fast, and if and how do you deal with scaling problems.
Chris Oliver replied

Upgrade FedenaProject to latest Ruby application

1
General
i downloaded fedena project which was developed by Ruby 1.9, please, how can i upgrade it to last ruby (Ruby 2.1). thanks
Chris Oliver replied

lazy high charts gem

1
Gems / Libraries
Hi there, I have been tinkering `lazy high gem` trying to get charts up and running, it works well with hard-coded data into the chart but when I try passing data dynamically i cant make some he...
Francisco Quinones replied

has_one association on polymorphic model

4
General
I have the following models (stripped down for simplicity) : ```ruby class Activity < ActiveRecord::Base belongs_to :trackable, polymorphic: true belongs_to :user has_one :comment, as: :t...
Greg Answer replied
Solved

Set up complex forms that user form objects nested within form objects?

3
General
Context: I'm working on an app for my job with strange requirements. Unfortunately, I have to maintain a data structure that's accessible to legacy CF applications that were originally designed fo...
Andrew Markle replied

How "expensive" are API calls?

2
General
I was thinking about an SPA that has a like button. In "Liking Post" tutorial you wrote a method that checks if the current user liked the post, but in an SPA that means I will have to make a call ...
Isaac Ben Hutta replied
Solved

Any good tutorials on using rbenv?

3
General
I setup my rails environment using the ubuntu installation guide found on gorails (amazingly helpful, thank you) but I'm not really sure how to use rbenv. I have a few rails apps, and I'm wonderin...
tquill replied
Solved

Migration Issue caused Heroku to fail.

2
Servers
I have an application on Heroku that uses the Paperclip gem that recently had some issues - and I'm not 100% sure on what it was that caused it. I have the application working locally (including th...
Francisco Quinones replied

How to raise a warning message from the model

0
General
Hi there, In my rails app I have the parent model ORDERS with SALES as a child (as nested routes). So 1 Order has_many Sales and 1 Sale belongs_to Order. In my USER model I have the column "maxdis...
Sascha M. posted

GoRails Screencast suggestion: Caching

2
Site Feedback
Hi there, just a quick suggestion. I'm at a stage where I'm struggling with Caching. Since you haven't covered this topic yet I would be very happy if you do, especially Database query caching. G...
Sascha M. replied

Display user

3
General
Hi Everyone, I'm trying to display a users profile image, along with their username in an autocomplete dropdown. The autocomplete functionality works fine, I'm just having trouble displaying the ...
Nick McNeany replied

Learning Ruby on Rails? Join our newsletter.

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