Satchit Shenoy

Joined

400 Experience
1 Lesson Completed
0 Questions Solved

Activity

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 location/slug/posts route. I get an empty result. What am I missing? Also, is it possible to locate these posts without nesting the routes?

Thanks!

Posted in Building a multi-location app in rails

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 for each location as follows:

e.g. example.com/newyork, example.com/boston

I can't use subdomains, as they will be used for languages.

e.g. en.example.com/newyork, es.example.com/newyork

Each location will have a model showing content and search functionality for that location only.

e.g. When in newyork, boston posts won't be shown and when in boston, new york posts won't be shown.

However, a user has a single sign-on for all locations and languages, and a user can view all content posted within the app regardless of the location. If I use multitenancy, the user can only view New York posts when on /newyork and Boston posts when on /boston which is not the desired result.

What approach should I follow here? Does multitenancy even make sense?

Posted in Facets with Searchkick

Hi Chris, Tried this. It worked! But now, it works in an individual capacity. If I have three sets of aggs, how do I filter across all three results? I can do this through the url, but not in the view. Thanks.

Posted in Integrating Mailboxer with Apartment

Hey Chris... Alright, this did work, using the scope operator - Mailbox::Conversation, etc..Thanks for pushing me to prod further :)

Posted in Integrating Mailboxer with Apartment

Tried that.. Sadly, didn't work. Got an unrecognized constant error. Is there any way that I could run migrations for public domain only when it comes to mailboxer?

Posted in Integrating Mailboxer with Apartment

Hi,

I'm trying to integrate mailboxer with apartment, and am having an issue with migrating the tables. I want the mailing service to be universally applied to the app, but apartment migrates the tables for each schema. This creates multiple mailboxes for each subdomain, which is not the desired effect. There are no models to exclude with mailboxer. Is there a workaround?

Thanks,

Satchit

Posted in How do I build conditional form fields?

Hi Chris,

Tried that one - didn't particularly work for me. Looking forward to the episode!

Thanks!

Posted in How do I build conditional form fields?

I'm trying to build a form which contains categories and subcategories. The desired effect is to display the subcategories field or the relevant subcategories depending on the category that has been selected. I found some random options on the net, but nothing that works in the desired manner. How do I go about this?

Thanks

Posted in Facets with Searchkick

Yes - that's true! The documentation isn't detailed though. Looking forward to the episode! Cheers :)

Posted in Facets with Searchkick

Great job on the Searchkick tutorial! However, I'm really interested in faceted search for an application I'm building, and the documentation on the internet is not really good enough. Any ideas? Thanks!

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.