Search Results for "best-way-to-create-or-save-a-record-with-associations-as-a-template-3cbb4db5-2a4d-4b55-8f8c-a2e947118dc8"

Forum Threads

Best way to create or save a record (with associations) as a template

10
General
I'm curious as to what people think is the best to create a new record, or save an existing record... as a template. The template would be used as a starting point to duplicate that record easily ...
tquill replied

Best way to create a belongs_to object from a has_many

19
General
Sorry for the vague title but I cant think of a better explanation! Let's say I have a list of Users and an admin could click a button/link that would create a site for them from the existing ...
alangosh replied
Solved

Liking Posts Discussion

96
General
Learned a lot of new things through this post, thank you. Never knew how to properly write a route to a module or the proper architecture for that set up. Very useful stuff. Would have liked to s...
Someone replied

Idea for TimeClock Need Advice

27
General
I'm wanting to integrate Time Clock functionality into an existing Rails 3.2.21 app. I think I have an idea of how to do this, but I need some advice on the how to handle different scenarios. So ...
shakycode replied

In-App Messages Between Users Discussion

25
General
Great episode Chris!Can't wait to get into the more advanced stuff.Thanks!

Group Chat with ActionCable: Part 4 Discussion

69
General
As for message relay jobs matter for this particular subject of this ActionCable example, do you recommend putting down for its current_user's id or name in these kind of scenarios when it comes to...

How do I display several posts in related "weeks"

17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks. I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...

Realtime Nested Comments: Part 3 Discussion

32
General
Very cool. I imagine a real-time comment feed like this will make a website feel come alive. One issue I’d love to see addressed in a follow up video is the page kinda moving around as you’re rea...
OuttaSpaceTime replied

Nested attributes

4
Rails
Hi All, I'm working with nested forms and I'm stuck trying to create the two models and the controller to handle this association. My models following this structure: Survey -> recipients &lt...
Giancarlo Corzo replied
Solved

Using the Trix Editor plus File Upload Attachments Discussion

52
General
Great vid, can this be done with the carrierwave gem?
Gabriel Ursache replied

Pull data from another table in a lookup

53
Rails
Hi all, I am looking up a list of articles, depending on the brand ID's - `@articles = Article.where(brand_id: brand_ids)` what i would like to know is there a way to retrieve the brand name in thi...
Jacob Montgomery replied
Solved

Importing datasets. Recommendations?

5
Databases
I have a few datasets that I need to import into my rails app. They vary from 100 records to 5000 which will span across a few models with various associations. Q.1: I can cleanse the data prior ...
shakycode replied

Multitenancy with the Apartment gem Discussion

80
General
Hi, Chris video is not loading!
Prajjwal Gupta replied

Activity Feed From Scratch Discussion

17
General
Could you post the source code to this?
Chris Oliver replied

Improving In-App Notifications Discussion

24
General
+1 for the ActionCable episode!
Taylor Cooney replied

Create a filterable location based database with Google Maps API?

1
Databases
I’m not sure exactly how to word the functionality of what I’m trying to build but let to give it a shot here to see if someone has built or seen something similar I’m working on a web app that wi...
ammys09 replied

Login with Facebook Discussion

30
General
Thanks for the video—it was great! I would love to see how you'd approach managing multiple OmniAuth strategies for a single user without Devise.…

Ecommerce multi-step checkout with guest accounts

10
Rails
Hello, I've been thinking about the best approach for implementing a checkout scenario in a custom ecommerce site I've been developing and wanted to see if anyone here had advice to share. We're n...
Mark replied

Recurring events with the ice_cube gem Discussion

47
General
On my app I use a Event and a EventTrans model so for each time a event occurs we can have a record with info and other stuff. So for the Calendar we display the First event with the recurrent on t...