-association
--
Nielson Rolim
nielson.ro...@gmail.com
On 29/09/2018 11:21, fugee ohu wrote:
On Sunday, September 23, 2018 at 10:44:50 AM UTC-4, Nielson Rolim wrote:
I'd suggest you create your own solution without ancestry.
I had a similar problem. I have an User model and each user
, association_foreign_key: :user_id**
*
That way, I can add an user as parent of several users or an user as
child of several users.
*my_user.parents* will return all my_user parents and *my_user.children*
will return all my_user children
**
--
Nielson Rolim
nielson.ro...@gmail.com
On 23/09/2018 08
You can use just Yarn without webpacker too.
On Monday, September 10, 2018 at 6:33:45 PM UTC-3, Rob Zolkos wrote:
>
> These problems are largely solved by webpacker now in Rails. Just add
> npm packages to your package.json (just as easy as adding to a Gemfile) and
> it works great with the
/opt_out.
--
---
Nielson Rolim
nielson.ro...@gmail.com
--
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 rubyonrails-talk+unsubscr...@googlegroups.com
Try create just a ruby script and include 'rubygems' and 'active_record':
|#!/path/to/ruby
||require'rubygems'|
|require'active_record'|
You must include all the models you need also.
Then give execute permission to your script:
|chmod a+x myscript.rb|
--
Nielson Rolim
nielson.ro
to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
Nielson Rolim
nielson.ro...@gmail.com
6 matches
Mail list logo