Howto work with a page not generated by the scaffold?

I too was trying to figure out such things.

I need a page that will ask for initial and final
date,

this would be a form page, so it would be a view. It would
go in the view folder. You could have an action getdates
det getdates
end
in controller which automatically will call getdates.rhtml
in the view folder.

You will get the info from this page in the params. Look up
render to look at the param hash.

The controller can then select all the data, and go to
another view page, show.rhtml.

You don’t need to use scaffold at all.

Here is what I found
http://wrath.rubyonrails.org/pipermail/rails/2006-February/016082.html

I also found the following tutorial which is more about
understanding

I will be happy to help if I can, I only have a couple weeks
on this myself.

anne

Hey Anne ! Thanks for the links !
I think after a while, you don’t use scaffold at all… at least I don’t
anymore.
You just start building your application page by page, action by action,
component by component… etc.
I think scaffold is just a “ooooooo look what rails can do” type thing
that
get’s people started.

I think… or I may be missing an amazing feature and I’m wasting a lot
of
time… but, I don’t think so :slight_smile:

I think scaffold is just a “ooooooo look what rails can do” type thing

Yap, and I have become allergic to the word scaffold and to that
attitude,
and I prefer to ignore politly anyone suggesting that since there is
scaffold, I should use it.

Rails is not for the true beginner. There is a lot of learning to do
just to
get to the first chapter of agile rails. some pros don’t understand
that.

Now that I am starting to understand, I will certainly never use
scaffold,
symbol a certain humiliation: How hard it was to figure out just one of
the lines of that oh so elegant program!

On Friday 10 Feb 2006 01:26, anne g wrote:

Now that I am starting to understand, I will certainly never use scaffold,

Well, there’s no harm in using the scaffold generator to put the
absolute
basics in place before fleshing them out yourself. I still use them,
because
it’s useful for getting stuff up and running as quick as possible.

Soon though, I’m planning to develop my own customised engines to
rapidly
implement the kind of stuff I need on almost every website - news
sections,
link pages, standard contact forms and so on. Might as well practise
DRY
between projects, as well as in them… :slight_smile:

~Dave

Dave S.
Rent-A-Monkey Website Development

PGP Key: http://www.rentamonkey.com/pgpkey.asc