1 Page website :)

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 :slight_smile: just learning
Rails.

thanks
-c

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?

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

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 Jan 8, 9:04 pm, typemismatch [email protected] 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 :slight_smile: just learning
Rails.

thanks
-c

What you ask is definitely possible, but I would ask what you are
exactly trying to do.

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?

Redirect? How about just apache?

index.html is a start…

I find that Sinatra is great for small web apps like simple
database-backed
forms or form mailers, or simple web services.

doppler