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
> 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