Is there a way to create what is basically a 1 page website, something that just does a redirect or a single submit form etc. It seems like an entire Rails site with controllers etc is too much. Maybe something with a single .rb page .. who knows :) just learning Rails. thanks -c
on 2009-01-09 10:33
on 2009-01-09 10:48
i don't understand what you are looking for. could you be a little more specific. if you just want a single page, why not build a single html-page?
on 2009-01-09 11:14
Rails is not good for 1-site-websites. The framework is "too big" for that, rendering takes more time than a plain html-file. You would need to have more than one site to have brenefits from rails like layout, DRY etc. But if you still want to learn rails by one-site-websites, checkout http://www.buildingwebapps.com/learningrails It's for free. The first one or two screencast deal with that. Greetings & have fun Chris
on 2009-01-09 15:07
If you don't want to use Active Record (database), just configure environment.rb to exclude it. Generate (scaffold) 1 controller and fill in the actions / views as you like. Cheers, SAzima
on 2009-01-09 17:25
On Jan 8, 9:04 pm, typemismatch <craigw9...@gmail.com> wrote: > Is there a way to create what is basically a 1 page website, something > that just does a redirect or a single submit form etc. It seems like > an entire Rails site with controllers etc is too much. > > Maybe something with a single .rb page .. who knows :) just learning > Rails. > > thanks > -c What you ask is definitely possible, but I would ask what you are exactly trying to do.
on 2009-01-09 17:37
I find that Sinatra is great for small web apps like simple database-backed forms or form mailers, or simple web services. http://github.com/bmizerany/sinatra/tree/master doppler
on 2009-01-09 18:35
Just as if I would not use a framing hammer to pound in a 4 penny finish nail, I wouldn't use Rails for a 1 page website... Maybe php is what you're looking for?
on 2009-01-09 19:09
Redirect? How about just apache? index.html is a start...