On Monday, December 21, 2015 at 7:19:30 AM UTC-8, Happy wrote:
>
> Hi Jeremy,
> thx for reply! I wasn't aware about select_append block array 
> possibility...
>
> One more question related to joined tables/models to you. How can i access 
> attributes(columns) from joined table?
>
> User.id works for primary table, for secondary (joined) table or 
> calculated attributes (columns)? I'm using hash syntax User[:cals] for 
> calculated columns. Is this correct way? 
>

Yes
 

> How can i access column from joined table, ie. "daily_logs.item"?
>

User[:item]

If there are column naming clashes between the tables, you need to alias 
manually.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to