Search Results for "a-has_one-through-association-issue"
Lessons
Forum Threads
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
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
Using Purchased Themes with Rails | GoRails - GoRails
28
General
2 Pro episodes in a row? :(
Chris Oliver replied
Handling Subdomains and Multitenancy From Scratch Discussion
55
General
This is my favorite episode thus far. The expansion on top of Rails is so intuitive, never thought how useful separating accounts from users would be.Hopefully there's a simple answer to this. When...
Robert Ault replied
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 Export a CSV file where it includes all the nested attributes?
16
Rails
Greetings:
I would like to export a CSV file where it includes all the nested attributes. I have an invoice model and a product model. Each invoice has many products. I am able to export to CSV fo...
Solved
Structure Guidance - Multi Tenancy Authentication / Authorization
19
Rails
I while back I was playing around building an app where you had multiple tenants (Company Model) and a single login (User Model). I then created roles (Role Model) to link the users to the tenants....
Chris Oliver replied
Rails Braintree couldn't update
3
Rails
I'm implementing Braintree Subscription Payment into my rails app. I've encounter some issue when trying to update subscription information in my database. When I make a payment, it's successfully ...
Jacob Montgomery 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
Dynamic Nested Forms with Turbo Discussion
45
General
Great demo of an awesome new ability. Thanks!
Matthias Orgler replied
How do I search Action Text with Ransack?
9
Rails
I have set up a basic search using Ransack but I don't understand how to get it to search Action Text. This is how it is implimented in the search_form_for:
f.search_field :title_or_rcontent_or_c...
Jay Killeen replied
Solved
How do I implement a model association that when changed older records are not affected
6
General
Here are my models (User , Project and Task) A user has many projects , a project has many users , A project has many tasks and a tasks belongs to a project , a user has many tasks and a task belo...
JM replied
Nested attributes with collection_select not saving
11
General
In my edit form I simply cannot figure out why collection_select isn’t saving the various values when it's nested. It works fine if I use a {multiple: true} and pull it outside of the fields_for ev...
Sean M replied
Dynamic Active Record Associations?
7
General
Trying to wrap my head around the best way to handle this.
I have an Event Model that has_and_belongs_to_many :event_types
in my Event model I currently have a column for price..
However, what I ...
Chris Oliver replied
Dynamic Nested Forms with Stimulus JS Discussion
36
General
Yes this is what ive been waiting for!
James DuBois replied
Inviting Users with devise_invitable Discussion
46
General
What made you laugh at 7:25? Is that a bird?! When do we get meet her/him? :)
nikhil kumawat replied
In-App Navbar Notifications Discussion
55
General
Thank you thank you thank you!
Ken Hibino replied
Comments With Polymorphic Associations Discussion
98
General
Awesome Video. I really liked and refreshed my concepts about Polymorphic Associations. Thanks :)
Karl McCollester replied
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
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...