How would I run this same test in javascript without renaming my
room_channel.js to room_channel.js.erb ?
--
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
Sorry... I was using class_name: 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:
>
> Use „class_name“, not „class“ as opti
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 t
I KNOW this is probably very simple, but I am scratching my head trying to
get it to work...
I have a table with a key named approver_id
What I want to do is associate this to the User class
So I can do Event.approver.first_name, etc...
in Event I have
has_one :approver, class: 'User'
So how
Hello everyone,
At RemoteTeam.com we are building an HR tool for companies that they have
remote employees.
We are looking experienced backend(Ruby on Rails) and frontend(Vue.js)
developers to join our team.
You can check our stacks at https://stackshare.io/companies/remoteteam
If you are int
5 matches
Mail list logo