Forum: Ruby on Rails 1 Page website :)

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.
2712e5921724f6efd1b3ed4c4a7e9221?d=identicon&s=25 typemismatch (Guest)
on 2009-01-09 10:33
(Received via mailing list)
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
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-01-09 10:48
(Received via mailing list)
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?
5cabbcab339feace80762194dc9302ed?d=identicon&s=25 Christoph Jasinski (Guest)
on 2009-01-09 11:14
(Received via mailing list)
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
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-01-09 15:07
(Received via mailing list)
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
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2009-01-09 17:25
(Received via mailing list)
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.
727d5785259d057745de13a9f3a713f4?d=identicon&s=25 David Rose (Guest)
on 2009-01-09 17:37
(Received via mailing list)
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
D188e591eac11021329b8821a5f954c7?d=identicon&s=25 Ar Chron (railsdog)
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?
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2009-01-09 19:09
(Received via mailing list)
Redirect? How about just apache?

index.html is a start...
This topic is locked and can not be replied to.