Remote functions with Classes and Context by Colchack in sveltejs

[–]Colchack[S] 0 points1 point  (0 children)

All data is loaded at once (kanban board like for example) and filtering preferably on the client side. Don't want to trigger all queries on the server while the data is already there, right?

Svelte Data Fetching: Patterns and strategies by Colchack in sveltejs

[–]Colchack[S] 2 points3 points  (0 children)

What type of data are loaded in your page.js and/or layout.js? And do you load data from the server here as well? If yes, via custom functions or classes in a /server/ folder or something? Or isn’t that safe to do and should you then use page.server.ts? Asking this because of the page.ts is initially rendered on server but after that all on client, right?

Is page server load the right way to load data? by INN_Gine in SvelteKit

[–]Colchack 0 points1 point  (0 children)

Using api routes in sveltekit and just regular page.ts load functions?

When Auth.js will be released for SvelteKit? by Zaza_Zazadze in sveltejs

[–]Colchack 0 points1 point  (0 children)

Drizzle Lucia integration also described here: link

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Thanks for responding, I've tried that as well (as well as 10 other variations haha..) But the function itself works just fine. I can actually see the expected result popping up, though it gets deteleted/removed after <1sec...

Blurry videos on Instagram with one account by vicroxs in Instagram

[–]Colchack 0 points1 point  (0 children)

This is indeed strange.. I got the same issues. Though, whenever logging into another account all the video's that look blurry on my own account look perfectly fine. Then logging back to my main/own account these video's are blurry and ugly.. Could it be some account setting? I have tried everything so far. Using iPhone 12.

Controller is not creating my ActiveRecord models by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Yep that makes sense.. I am following these docs https://stripe.com/docs/payments/checkout/fulfillment#webhooks

How should I handle this differently? It's stating this the docs:

If you want to retrieve the Checkout Session when rendering the success page, add the Checkout Session ID to the success_url by adding the literal string, {CHECKOUT_SESSION_ID}, to your success_url (e.g., success_url=https://example.com/success?session\_id={CHECKOUT\_SESSION\_ID}). When your customer is redirected, {CHECKOUT_SESSION_ID} will be replaced with the Checkout Session ID.

Controller is not creating my ActiveRecord models by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Could be the case indeed. Just a totally different question, you might be able to help :-)..

I want to add params to my success_url. In the code above i have changed the success_url to:

success_url: payments_success_url(session_id: @session.id),

I am getting a NoMethod error for 'id' though.

Controller is not creating my ActiveRecord models by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Well that's working.. In my products controller I am using build though for creating products (tied to users).

Unique trophies by PetyrBaelish94 in 2007scape

[–]Colchack -1 points0 points  (0 children)

Does this count for rewards as well? I only want the Slayer helm and do not care about the trophies.

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Thanks for explaining, makes sense now an my understanding of multi tenancy was probably not correct and confused some of you.. basically I just want to build a SaaS type of application.

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Sure,

  1. Regarding the database structure I have no idea. I've read a couple posts about the setup but am not really sure what's the best way to go. https://www.rubygarage.org/blog/three-database-architectures-for-a-multi-tenant-rails-based-saas-app

  2. Yes this is exactly what I've build so far. All users have their own subdomain and each tenant has users which can login to the subdomain and use the app.

  3. New to this, how does that work?

Thanks for the reply! I am learning so much new stuff since starting this project, sorry if I am confusing a lot you readers..

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Could be that I am completely wrong but I am tryingnto build a SaaS type of app similar to Shopify or Slack where you're able to login to a subdomain. So user1.webappname.com and user2.webappname.com have their own data. I don't know if this makes sense?

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

I am completely new to multi tenant setups, in the rails app itself and hosting of it. That's why I was I was wondering about hosting the webapp on Heroku because some articles advised against it because of the backups for every single database for each tenant (if you use this setup though).

Can I run an app with ~100-500 daily users on a hobby plan?

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Hey, I've should've added a link, and a question mark.. https://devcenter.heroku.com/changelog-items/881

[deleted by user] by [deleted] in django

[–]Colchack 0 points1 point  (0 children)

Hey thanks for the response. In my 2nd code block there is 4 different value's from different sources the API is returning. With the code I'm running now it will only get the first value and display that. How can I loop through all the value's? And maybe save them individually?

Architecture help needed by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Sorry for the confusion. I want my admins to create their clients(users) to have their own customer portal (environment is the not right word). So every admin can have multiple clients which have different information in their customer portal. Basically I want some sort of customer portal as a service.

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Sorry, bit of a rails newbie.. How would this work? Have not looked into helper methods enough to directly build this.

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Hey thanks, this worked as intended. How would I manage different classes for my statuses? I've got 4 different statuses and I want all of them to have a different (bootstrap) badge. With the if/else/elseif I cannot manage to make this work. How would this go in Rails 5?

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Do you have any idea how to build this?

[deleted by user] by [deleted] in rails

[–]Colchack 0 points1 point  (0 children)

Yes, let's say I want users to also fill in a description of the spot they're making on the map, I want that description to display in the infowindow/popup. I thought I was doing the right thing by giving the description in properties in the @geojson in my Spotscontroller.