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-... I also found the following tutorial which is more about understanding http://www.troubleshooters.com/codecorn/ruby/rails... I will be happy to help if I can, I only have a couple weeks on this myself. anne
on 2006-02-10 03:02
on 2006-02-10 03:06
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 :)
on 2006-02-10 03:27
> 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 2006-02-10 03:44
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... :-) ~Dave -- Dave S. Rent-A-Monkey Website Development http://www.rentamonkey.com/ PGP Key: http://www.rentamonkey.com/pgpkey.asc