Search Results for "what-is-the-best-digital-marketing-company"
Lessons
Forum Threads
What is the best way to have User in some group and select those groups on Event
Hi,
I have two models User and Event.
User should belong to one group and User could attend Event based on selected group.
Event could be open for one or many groups.
My first solution was to...

1
Rails
What is the best way to determine the country/currency for a user?
Check out the Geocoder gem => https://github.com/alexreisner/geocoder and http://stackoverflow.com/questions/34816490/get-remote-ip-address-in-rails-model
What you'll want to do is snag the I...

2
Rails
What are the best practices for generating SEO friendly urls in Rails 5?
To follow-up on Chris' last reply, in the past I've done:
`self.slug = SecureRandom.hex(2)`.
on a model create method and then added that as part of the slug.
---
[SecureRandom (apidoc...

7
Rails
Articles has_many tags and tags has_many articles - best way to get tag names uniq
Hi there Nikodem,
First, a tiny nitpick with your naming—what you're calling `ArticlesTag`, I would rename to `ArticleTag`. It's just one tag for one article.
Now, to get all the tag names that'v...

2
Rails
How do I calculate a computed value in a model when showing or indexing over that model in its controller?
After sleeping on it, I believe the best way (and the way that requires the fewest queries to Cloud Firestore) is to just download the whole Firestore DB and update from that object every 10 or so ...

2
Rails
Getting back into Rails
Awesome. Thanks for the guidance Chris! Oh, and of course, the wonderful content :)

3
General
How to attach "users" to a tenant/tenants with Rails multi-tenancy/apartment
of course it is Gourav.

12
Rails
Spree commerce vs custom solution from scratch
Thank you for the reply @damianlegawiec and all the work your team has put in. Glad to see more momentum behind the spree community and full Rails 5 support.

6
General
Best way to create or save a record (with associations) as a template
Daniel,
I agree. I did try having separate models for templates and non-templates (and all of the associated records), and it was a terrible approach. As you mentioned, it was a lot of unneces...

11
General
Everyone's Been Bitten Before - Whitespaces/Unwanted Characters in User Input
Hey Chris, thanks for the awesome and details response, and so quickly too!
Great details consideration there, I think you're right on the money with the two points around callbacks and gems/de...

3
Rails
Live Stream Video w/ Rails
live streaming would be an interesting feature for my latest mobile app https://surfcheck.xyz with the coming of 5G to many countries, it may be the future for many mobile apps.
I found many ap...

5
Tips
Rails API backend with Electron Frontend
If you have any Papa Murphy Survey Code on your receipt, you can help Papa Murphy deliver a better eating experience on your next visit.
https://guestsurvey.onl/papa-murphy-survey/

6
Rails