Ruby on Rails Community Forum

rails vs node db transactions

0
General
Hi, I am playing around with node.js and see promises everywhere even with db transactions. I was wondering why it is so different from rails. For instance: var db = require('mongodb-promis...
Sean M posted

Bonsai vs AWS Elasticsearch?

1
General
Any recommendation?
Chris Oliver replied

How do I implement a default_scope order when I'm using searchkick?

1
General
Before I implemented searchkick/elasticsearch on my rails app, the default_scope -> { order(created_at: :desc) } works. But after implementing searchkick/elasticsearch, it doesn't work anymore.
Chris Oliver replied

A series on Turbolinks 5

3
Site Feedback
Reading through the Turbolinks 5 documentation, there are mentions of several use cases, like eg. in the Making Transformations Idempotent sections (but there are more). It would be great if you co...
Adam D replied

How do I validates uniqueness of parent of parent?

0
General
Hi guys! I have 3 models: lectures > chapters > lessons With a has_many through relationship. The problem: each lecture should have a lesson with the same step for ordering. In lesson....
Adrien Nhem posted

Refile uploading via rails console

6
General
So I'm using Refile and I'm trying to migrate some existing data that I need when I seed the database (migrating to Refile from existing solution and need to keep existing data). When I try testi...
Chris Oliver replied

searchkick's autocomplete does not work on my iphone safari?

3
General
I've implemented elasticsearch/searchkick on my rails app and it works both in development and production on desktop browsers. But I noticed that the autocomplete does not work on safari on my phon...
Chris Oliver replied

how to setup elasticsearch on Heroku?

3
Servers
I implemented the elasticsearch/searchkick on my app and it works on develoment. But it's not working on production. I did heroku logs and these are the errors: "Completed 500 Internal Server Erro...
Joe Guerra replied

Old Rails 2 Delayed_Job User_Mailer Question

1
General
So I'm having an interesting issue. I'm trying to get this gem delayed_job to send an invitation email to sign up to an email address. The process seems to be working, and it is telling me that the...
Chris Oliver replied

Verifying iOS in-app purchase receipts

1
General
Anyone have any experience with handling iOS in-app purchase receipts? I know there's a Gem called Venice, but couldn't find much documentation or tutorials online. Appreciate any advice!
Chris Oliver replied

Devise: Add a select to my signup form

14
Rails
Hi all, me again! haha So i have got my app working as i want so far. All is good and i am picking up Rails really quickly thanks to GoRails. I am however a little stuck, I can't seem to add in a ...
Jacob Montgomery replied

Hi Chris How do I add jquery and ajax to the comments form from your tutorial?

0
General
I wrote some jquery to accomplish this here is the code. $(window).load(function(e){ $("#comment_body").on('click',function(){ $(this).removeAttr('placeholder'); }); var comment =...
emmanuel alcime posted

How do I get devise to use my custom routes inside of the authenticate_user!

0
Rails
I've declared custom routes in my app for a few of the devise actions, they are as follows: ```` devise_scope :user do get 'signup', to: 'devise/registrations#new', as: :signup get 'login', ...
Alan Reid posted

How do i implement a trending function like twitter or facebook on my rails app?

1
General
I want to implement a trending function for last 24 hours hottest topic discuss or mentioned most in my website,i want to know is there anyway to implement this function in ruby on rails application?
Chris Oliver replied

Searchkick search_data not working

4
Gems / Libraries
I'm playing around with elasticsearch and searchkick, but I can't seem to get search_data working. Searchkick seems to ignore it all together. If I only put one attribute in, it still searches on ...
Chris Oliver replied

What is the best way to handle omniauth

1
Gems / Libraries
Hi Chris, after couple of test run i figure out twitter is hard to work with other oauth2 providers, because twitter api doesn't allow to access other user email.. can you guide me about how to do ...
Chris Oliver replied

How to subscribe to multiple chat rooms in a chat using Action Cable

4
General
All examples i can find are subscribing to one single room by pasing a room as a param when creating the channel but what if i have Room A, B and C an i (as a user) am in all of them. This is an e...
Chris Oliver replied

Episode Suggestion:

1
Site Feedback
Hey Chris. Is it possible to do an episode on recurrence, recurring events? I'm looking at ice cube gem and recurring select but not that easy for me to fully understand everything! it would be gre...
Chris Oliver replied

How does searchkick work with Friendly Id for scoped objects?

0
General
I've developing an app where posts are nested under locations and are also scoped by location. Through Search, I am able to locate these posts under the location/:id/posts, but not under the locati...
Satchit Shenoy posted

Cloning nested fields by JS/coffeescript

0
Javascript
SImple app has a two models and does the function to add nested model fields dynamically through JavaScript. But this stuff does not working with the Turbolinks 5. How to refactoring this code by J...
Dmitrii Amelchenko posted

Learning Ruby on Rails? Join our newsletter.

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