Re: [Rails] Association to User using a key named approver_id

2020-01-27 Thread Niklas Bichinger
ame: Typed it incorrectly here... > > This worked for me... > > has_one :approver, class_name: "User", foreign_key: 'id', primary_key: > 'approver_id' > > John > > >> On Sunday, January 26, 2020 at 1:24:18 PM UTC-5, Niklas Bichinger wrote: >

Re: [Rails] Association to User using a key named approver_id

2020-01-26 Thread Niklas Bichinger
Use „class_name“, not „class“ as option key. Also, from the Model that *holds the ID* of the other Model, it’s always „belongs_to“. So in Event: belongs_to :approver, class_name: „User“ and you’re good to go. Sent via iPhone. > Am 26.01.2020 um 16:56 schrieb John Sanderbeck : > >  > I KNOW

Re: [Rails] How do I let users design their own blog with trix

2020-01-18 Thread Niklas Bichinger
> > I know how to use trix in a field but how do I let users design their > entire page? > Trix is just a relatively small content editor - you might want to have a look at a CMS solution like this one https://github.com/comfy/comfortable-mexican-sofa, where you can prepare layouts and pages for

[Rails] Re: How do I override asset_path while retaining access to the original?

2020-01-08 Thread Niklas Bichinger
Did you find a solution to this? We're currently at the same point. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to