brendon / acts_as_list

An ActiveRecord plugin for managing lists.
http://brendon.github.io/acts_as_list/
MIT License
2.05k stars 356 forks source link

Is there way to specify the position when creating a resource? #255

Closed jmuheim closed 7 years ago

jmuheim commented 7 years ago

Hello

I understand that I can move an existing resource using insert_at. But is there a way to specify the position of a resource right when creating it? Instead of adding it to the bottom, then moving it manually somewhere else?

Thank you.

brendon commented 7 years ago

Yep just pass the :position attribute (or whatever you called it) :)

jmuheim commented 7 years ago

Thank you!