General Ruby on Rails Forum
Pointing a method to a namespace, class, or something (ruby question)
2
General
I'm building an API wrapper and struggling with how to set it up the way I'd like. Here's an example of what I'd ultimately like this to look like:
```ruby
ServiceName::Client.new(api_key).record_...
Chris Zempel replied
Loop through associated records and deliver as csv
5
General
Hi there,
I've watched your CSV export episode and I'm using the exact same code to export the records to a CSV.
I've got two tables: Orders and Sales. 1 Order has_many Sales and 1 Sale belongs_t...
Sascha M. replied
Solved
dealing with authorized parts in fragment caching
4
General
I have a facebook/disqus like news feed in my app. Every action handled via AJAX on the posts index page. I have hard time figuring out how to do the russian-doll-catching when there are authorized...
Chris Oliver replied
Solved
Action Cable vs Mailboxer?
3
General
Differences and pros/cons between Rails 5 new **Action Cable** vs **Mailboxer** gem?
What are your thoughts? :)
Bruno Sacco replied
Solved
Polling/Long Polling navbar notifications
3
General
Chris I have been using your implementation of navbar notifications and I really like the way it's constructed.
I can implement Facebook style notifications and I am pretty happy about it.
However ...
Chris Oliver replied
Solved
form builder for admin
0
General
is there any rails gem that you can use to create a form builder that an admin can use to create a form for the frontend. probs something that works similar to https://ninjaforms.com/ . Any ideas ...
Kelvin Atawura posted
Push bitmap to clients in realtime
1
General
Hi Chris!
I want to create a service which will show a heatmap with some stocks data in realtime (updated each second). Each second there will be around 100 new data points and in general, chart m...
Chris Oliver replied
Solved
How do I add a loading spinner and bar like this site?
5
General
I know it's a **turbolinks** feature but I don't know how to make it appear or how to do it, it's pretty nice the way GoRails handles the loading with that spinner and bar, how is it done?
*Thanks...
Enrique Benitez replied
Solved
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
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
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
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
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