Alan has given a good start. Also, what he said about that you musn’t
create
tables in a controller is true. I didn’t give much thought to how you
were
using the call, but I don’t see why you want to create tables as part of
the
application’s functionality.
The create_table method is part of the ActiveRecord migrations system
and almost certainly shouldn’t be being called from a controller.
I’d suggest, Naveen, that you should stop typing, and do some reading.
You’re missing some fundamentals and are unlikely to pick them up from
isolated messages to this list.
Purchasing “Agile Web D. with Rails” would be a great start,
but if cost is a problem, there are several free tutorials online
covering the basics.
Alan has given a good start. Also, what he said about that you musn’t
create
tables in a controller is true. I didn’t give much thought to how you
were
using the call, but I don’t see why you want to create tables as part of
the
application’s functionality.
Where can I crete the tables, in other place how can we acees the
Actioncontroll
methods,
I am new ro RoR
Please help to use of functions of action controller,
Is there any function other than these