Forum: Ruby on Rails Howto work with a page not generated by the scaffold ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E29eaefee1709918198c8a4f55c42667?d=identicon&s=25 Anne G (Guest)
on 2006-02-10 02:02
(Received via mailing list)
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
Ff82af3238a57fbd1212832ec1a19f28?d=identicon&s=25 Dylan Stamat (Guest)
on 2006-02-10 02:06
(Received via mailing list)
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 :)
E29eaefee1709918198c8a4f55c42667?d=identicon&s=25 anne g (Guest)
on 2006-02-10 02:27
(Received via mailing list)
> 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!
Cf7e5e4b5ca573eec214191fac420a2f?d=identicon&s=25 Dave Silvester (Guest)
on 2006-02-10 02:44
(Received via mailing list)
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 Silvester
Rent-A-Monkey Website Development
http://www.rentamonkey.com/

PGP Key: http://www.rentamonkey.com/pgpkey.asc
This topic is locked and can not be replied to.