Groupable ActionLinks

25 views
Skip to first unread message

Atastor

unread,
Sep 25, 2012, 2:29:01 AM9/25/12
to actives...@googlegroups.com
As christmas and the holiday season is approaching:

I would like to have the action links group-able. Especially I would like to have the feature to put each group of action links into a seperate select box.

Regards
Michael

ps: I was extra good with all the other kids this year!

Atastor

unread,
Sep 25, 2012, 2:41:35 AM9/25/12
to actives...@googlegroups.com
Put this on HOLD, dear Santa, until I have checked out https://github.com/activescaffold/active_scaffold/wiki/Action-links-groups

Atastor

unread,
Sep 25, 2012, 2:57:59 AM9/25/12
to actives...@googlegroups.com
Ok, instead of a wish a question: I do have defined several nested links, e.g.

    conf.nested.add_link(:documents)
    conf.nested.add_link(:histories)
    conf.nested.add_scoped_link(:children)

How can I put these nested links into one action link group?

Atastor

unread,
Sep 25, 2012, 3:25:12 AM9/25/12
to actives...@googlegroups.com
Ok,  now answering my own question I declare this a selfcontained thread.

Its all in the above mentioned link, self-defined nested links dont need a seperate declaration, they are dealt with setting

    conf.nested.action_group='member.actions'

Thanks for reading!

*SIGH*

Sergio Cambra

unread,
Sep 25, 2012, 3:39:05 AM9/25/12
to actives...@googlegroups.com

After reading your self-thread, I'm thinking action_group could be added to options (only for nested links) so you can add nested links to different groups.

--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/g7DHn9Go5-0J.
To post to this group, send email to actives...@googlegroups.com.
To unsubscribe from this group, send email to activescaffol...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.



Atastor

unread,
Sep 25, 2012, 3:57:32 AM9/25/12
to actives...@googlegroups.com
You mean, there might come something good from me mumbling to myself?

Cooooool ... ;-)

Sergio Cambra

unread,
Sep 25, 2012, 4:35:12 AM9/25/12
to actives...@googlegroups.com

I have added it to master

To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/NHqrT-iNe5EJ.

Atastor

unread,
Sep 25, 2012, 7:56:39 AM9/25/12
to actives...@googlegroups.com
Great, its working for me. Would it be asked too much if you can backport it to branch-3.2, which is the version I need on my current project?

I added a paragraph on the wiki page to describe this addition.

Thanks!
Michael

Sergio Cambra

unread,
Sep 25, 2012, 1:34:14 PM9/25/12
to actives...@googlegroups.com

I usually don't add new features to old branch, however I have backported because it's small, and 3.3 can be delayed until I have time to add some improvements more for performance.

 

Thank you for adding it to wiki

To view this discussion on the web visit https://groups.google.com/d/msg/activescaffold/-/JlzbEd_8pSkJ.

Reply all
Reply to author
Forward
0 new messages