Hi,

I'm looking to have a static page with prose (like the Basecamp
landing page) on my site and was wondering what was the most Rails way
of doing it.

I've had a couple of ideas:

I could do a controller and a view without a backing model. This has
the obvious advantage of not hitting the database for the prose. It
also means the prose would be source controlled. However, it does mean
that content prose would be stored in the view or controller, which
feels very wrong. It's also plausible that I would want to use the
prose elsewhere on the site, which would lead to a copy and paste
nightmare.

I could do a complete MVC triple, with the controller having simple
update and show actions (I could even use timestamps to create a
simple versioning system for the prose).

To me, the second seems preferable. Any better ideas and opinions are
valued.

Also, how does one go about having a view that's backed by multiple
models and controllers in Rails (taking the Basecamp landing page as
an example, how would it work if each bit of prose was a model
controller pair)?

Many thanks,
Steve

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to