Pal,
The key is to read, try, and understand the demo app in the AWDWR book first.
Don''t try to knock out your CMS as the first project you attempt.
Then, pick a few simple steps to take toward your goal and tackle them. Search
the archives of this list for answers to questions before you submit a new
entry. There is a LOT of information available from the collective minds here.
I would suggest also getting the book "Rails Recipes" (I chose PDF
format). It has some useful tips for building some of the features you will
need...for example, building your user authentication system (or more
appropriately, using an existing system in your application). For specific
questions, e.g. table names, there are many references to that in each of the
books or on the archives of this list. The short answer is
"yes"...refer to "set_table_name" command. Your menus would
be included in a "layout" in rails, which you would set in some or all
of your controllers.
Welcome to Rails and good luck!
Nathan
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of P?l Bergstr?m
Sent: Thursday, May 25, 2006 5:20 AM
To: rails@lists.rubyonrails.org
Subject: [Rails] Recreate a CMS from PHP
I''ve built a kind of cms in php, and I wonder if someone could give me
some hints on how to do this in RoR. Doesn''t have to be much, just so I
can get an idea of what I should learn and tackle as a new user of both Ruby and
RoR.
The system is built with a core of users and on that different modules.
Users are given access depending on what user group they belong to, and from the
other end an administrator can assign the different parts of a module a group
name. Normal and straight forward. I also have a language file connecting
variables with the particular word of the selected language in each module with
variables in the files. A greeting on the first page is then given in the
language the user has assigned. So the system is based on modules that can act
separate from each-other.
The main interface is a page where you have a top and a menu on the left and
content in the center. It''s the same in each module. The first concern
is the menu that checks what module it''s in and what to show depending
on the user group and language ( You can always reach the different modules in
the same menu). How can I use RoR to make that menu as an object that I can
include in every page but still be always the same? Do I make a class of my own
or method or what?
I bought the book "Agile Web Development with Rails" and try to learn
in the same time. But a few hints would be great. For example; my current db has
table names like "adm_users" (mysql). Can I still use that, or what
about this thing with model name and table names in plural?
Sorry for a long and complex question, but I''m eager to get started and
want to get into the right direction as soon as possible. I started to learn
Ruby and it seems easy and rather fast to learn. Ror is more complex to me.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails