Documentation and support channels

1 view
Skip to first unread message

Yannick Warnier

unread,
Apr 7, 2008, 4:26:03 PM4/7/08
to akelos-f...@googlegroups.com
Hello,

I am new around and I have a few questions:

1) What is the preferred channel to ask for help (meaning where are
the active answering people spending most of their time)

2) The main developer is spanish, as far as I could see. Is there
documentation in spanish that could benefit from a translation to
english?

3) I find it hard to get information about specific naming conventions
when talking about "has and belongs to many". Is there a specific
naming convention that will allow the generate script to auto-generate
the relation "habtm" from the tables definition?

4) When generating a relational controller (habtm), what Controller
name should I use? Let's say I want to join the "users" table with the
"products" table for a "belongings" habtm relationship. What naming
conventions should I use? How do I force the model generator to use a
specific table name (to avoid it creating a useless table)?

5) How do I drop (=uninstall) a set of models? In other words, how do
I trigger the down1() function in my installer?

I will document your answers on the wiki, so your answer time is not in vain.

Thank you,

Yannick

Bermi Ferrer

unread,
Apr 7, 2008, 6:21:03 PM4/7/08
to akelos-f...@googlegroups.com
Hi Yannick,

> 1) What is the preferred channel to ask for help (meaning where are
> the active answering people spending most of their time)

The most active channel is the forum at forum.akelos.org

> 2) The main developer is spanish, as far as I could see. Is there
> documentation in spanish that could benefit from a translation to
> english?

Yes, I'm Spanish :). Unfortunately there are no docs in Spanish as I
do my best to make it in English. Translations to Spanish and other
languages are appreciated.

> 3) I find it hard to get information about specific naming conventions
> when talking about "has and belongs to many". Is there a specific
> naming convention that will allow the generate script to auto-generate
> the relation "habtm" from the tables definition?

No, relations are not created automatically by generators.

> 4) When generating a relational controller (habtm), what Controller
> name should I use? Let's say I want to join the "users" table with the
> "products" table for a "belongings" habtm relationship.

Normally you'll use either the users controller or the products
controller.

Just select a meaningful action name for linking one with other like
UsersController::add_product or ProductController::assign_to_user

> What naming conventions should I use? How do I force the model
> generator to use a
> specific table name (to avoid it creating a useless table)?

The generator will not create the relation for you. You just need to
declare a one-line attribute in order to associate both models.

class User extends ActiveRecord{
var $habtm = 'products';
}

class Products extends ActiveRecord{
var $habtm = 'users';
}


>
> 5) How do I drop (=uninstall) a set of models? In other words, how do
> I trigger the down1() function in my installer?

./scripts/migrate user uninstall

> I will document your answers on the wiki, so your answer time is
> not in vain.

Thank you!

Bermi

Yannick Warnier

unread,
Apr 7, 2008, 9:07:09 PM4/7/08
to akelos-f...@googlegroups.com
I've added http://wiki.akelos.org/has-and-belongs-to-many and I
wouldn't mind a developer to review it quickly (I wouldn't want
erroneous data to be on such an important topic's documentation)

Yannick Warnier

unread,
Apr 7, 2008, 9:11:58 PM4/7/08
to akelos-f...@googlegroups.com
OK, neverming, apparently it duplicates a bit the pages I have added
in the "See also" paragraph just now.
Reply all
Reply to author
Forward
0 new messages