Ruby on Rails Community Forum

How to use the Sentimental gem

8
Gems / Libraries
Hi there, I want to use the Sentimental gem to automatically check if an article is positive negative or neutral. This gem here: https://github.com/7compass/sentimental works fine in the Rails con...
Sascha M. replied
Solved

Managed hosting

4
Servers
Hi there, I am curious what others a doing for large scale managed hosting. Currently we managing our own AWS and I would like to hand those duties over to a 3rd party. I am looking at Heroku but ...
Beau O'Hara replied

Dynamic Pricing based on user country

2
General
Hello! I'm thinking of a way to handle dynamic pricing on my web app based on the user country, for example: A user wants to subscribe for a pro account on my website and this user is based outsi...
Enrique Benitez replied
Solved

Opinion: Destroy or not destroy

3
General
I am working on an app and I have already added the paper trail gem (https://github.com/airblade/paper_trail) to track revisions. Now I am thinking that I want to add Paranoia (https://github.com/...
Chris Oliver replied

How to migrate from Heroku to Digital Ocean

10
Servers
Chris, I'm thinking of moving to digital Ocean from Heroku but my knowledge on this topic is cloudy. Can you tell us about the differences between the 2 service? and benefit.
tim carmichael replied
Solved

Dynamic select boxes with Rails 4

2
Javascript
Hey there I am trying out a dynamic select box with rails 4 and I am stuck on where to put the js code because the form exists in a nested form. So should the code go in the js file for the form ac...
JM replied

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

Ajax refresh while persisting params

0
Javascript
I'm maintaining an old Rails app and am trying to have a my index action use a form_tag to pass the params of a region so I can scope the results of calls by region. This works fine and dandy, but...
shakycode posted

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

Nofications screen cast

2
Site Feedback
Hi Chris , I am following the notifications screen here : https://gorails.com/episodes/in-app-navbar-notifications?autoplay=1 all is well no errors but when i create a post the notifications aren...
JM replied

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

Advanced management (DEVISE) profiles.

1
Gems / Libraries
Hello Chris, I have the following problem, i can not separate the management of the profile to "devise" below will list how I would manage profiles: Edit User Profile (ex. http://localhost:300...
Alan Reid replied

jquery.turbolinks not working on my app

2
Javascript
I'm using both jquery and turbolinks on my app and because turbolinks don't make full page loads I need some of my js to fire when navigating between pages using turbolinks, I really don't want to ...
Chris Oliver 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

An other deployment question

1
Servers
Hello everyone! I'm new to Rails (and at coding in general) and english is not my mother tongue, so I might say clumsy stuffs, so please bear with me :D I'm finally ready to launch my first app l...
Ariff Munshi replied

best way to validate URL

3
Gems / Libraries
Hi Chris! I've been looking for a good URL validator for a while, but all the solutions I found are kinda weird, so I'm not even sure if I wanna use any. Here is my usecase: A user can create a p...
Chris Oliver replied
Solved

Learning Ruby on Rails? Join our newsletter.

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