Forum: Ruby on Rails Tableless models in Rails

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.
4287232616a1dde31cd2dab154acad70?d=identicon&s=25 Pepe Sanchez (jsn1)
on 2008-10-09 15:31
Hi all

I am looking for some informaiton about how to create forms using
tableless models.

What do you recommend?
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2008-10-09 15:46
(Received via mailing list)
The form helpers don't care if an object is an ActiveRecord::Base or
not, it simply works on the attributes of the object.

So, just don't make your model a subclass of AR::Base.

Jason

On Thu, Oct 9, 2008 at 9:31 AM, Pepe Sanchez
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2008-10-09 16:37
(Received via mailing list)
When you say tables do you mean database tables OR html tables ?

Here is a good howto on session based model:

http://railscasts.com/episodes/119-session-based-model
4287232616a1dde31cd2dab154acad70?d=identicon&s=25 Pepe Sanchez (jsn1)
on 2008-10-09 20:59
I mean a data entry form that is not connected to a table through a
model
This topic is locked and can not be replied to.