Hi everyone Does anybody has an example of a rails classmodel? I learn rails now and I''m wondering, how does a classmodel of rails look like! Thanks for your suggestions... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You mean an active record model class? There are literally hundreds of examples from tutorials all over the web. You will need to have a basic grasp of Object Oriented programming concepts like classes, encapsulation, etc. Have a look here: http://api.rubyonrails.org/files/vendor/rails/activerecord/README.html It gives enough example of models to get you started. (Hint: It is the part that starts "class Product < ActiveRecord::Base") -christos On 9 Jan 2007, at 08:28, M. R. wrote:> > Hi everyone > > Does anybody has an example of a rails classmodel? I learn rails > now and > I''m wondering, how does a classmodel of rails look like! > > Thanks for your suggestions... > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Christos Zisopoulos wrote:> You mean an active record model class? > > There are literally hundreds of examples from tutorials all over the > web. You will need to have a basic grasp of Object Oriented > programming concepts like classes, encapsulation, etc. > > Have a look here: > > http://api.rubyonrails.org/files/vendor/rails/activerecord/README.html > > It gives enough example of models to get you started. > > (Hint: It is the part that starts "class Product < ActiveRecord::Base") > > -christosNo, I don''t mean the topic "active record model class". I''ve some different model classes in my rails-project. Now, I would like to draw a picture of my design - it''s calling design model. These design model is a image, that explain, how the different classes are arranged in the model and which relationships they have to the other model classes. Draw a design model is a step in the software engineering process. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
M. R. :> No, I don't mean the topic "active record model class". I've some > different model classes in my rails-project. Now, I would like to draw a > picture of my design - it's calling design model. These design model is > a image, that explain, how the different classes are arranged in the > model and which relationships they have to the other model classes. Draw > a design model is a step in the software engineering process.Visualize Models http://visualizemodels.rubyforge.org/ -- Jean-François. -- À la renverse. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
That is incredibly cool. It also saves me the trouble of teaching SQL Fairy about Rails conventions =) Jean-François wrote:> M. R. : >> No, I don''t mean the topic "active record model class". I''ve some >> different model classes in my rails-project. Now, I would like to draw a >> picture of my design - it''s calling design model. These design model is >> a image, that explain, how the different classes are arranged in the >> model and which relationships they have to the other model classes. Draw >> a design model is a step in the software engineering process. > > Visualize Models > http://visualizemodels.rubyforge.org/ > > -- Jean-François. >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---