General Ruby on Rails Forum
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
Multi select form & DB search
1
General
Hi there,
I want to allow a user to select multiple brands and teams in a select form field. I am using the user's input to create CSV through running a query.
So far I only can query single tea...
Chris Oliver replied
Solved
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
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
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 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
Is there a good reason to not use keyword arguments always?
1
General
I have used keyword arguments for some of my methods before, but haven't really thought about why not use it for all methods with arguments?
Seems like there is no good reason to have the caller ...
Chris Oliver replied
Solved
Is it possible to manually mark as watched an episode?
1
General
Hi Chris.
Would it be possible to add a feature on GoRails in order to manually "mark as watched" an episode?
When I randomly select an episode to watch, I would like to list only those that I have...
Chris Oliver replied
Solved
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
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
How to link the liked posts by each user?
3
General
I just finished with the [Liking Posts](https://gorails.com/episodes/liking-posts?autoplay=1) screencast. All good. I managed to create a User Profile. And now I'm trying to display the liked post...
Chris Oliver replied
Solved
Spree commerce vs custom solution from scratch
5
General
Hey Chris, like most people already mentioned, awesome content on GoRails.com. I love how you give additional explanation to how things work and not just a step by step tutorial how to make somethi...
William Gillett replied
Setting up “Next post” and “Previous post”
2
General
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing?
**This...
Chris Oliver replied
Solved
[GET] Errors and Locales?
0
General
So I'm dealing with an interesting but probably simple issue. Working on some Rails 2 stuff that was written by someone who has long been out of reach so I've been dusting it off on my own.
Someo...
Ja Ku posted
Add a coment in a post ( how can I do)?
0
General
I'm coding my personal website , I have a backoffice where I can write blog_post ( title , content , category and date ).
I would like to make user comment my blog post without being logged in .
...
Federico Calarco posted
If-clause not working
0
General
I've created a little tool which pulls a price from another table according to what was sold. This works perfectly fine.
However I need to include a discount logic into that. There should be 3 ways...
Sascha M. posted