Hi, Different language variables bundled in a class I would definetely put in the lib folder like Ryan suggested; also if you want to override or extend some standard Rails classes, that''s where you should do it. The other options you have apply to more specific cases: - My suggestion to put some of your own classes in the app/models folder should only be done if your class is really a model (just not necessarily an ActiveRecord model). So a Class with objects that can be viewed and possibly manipulated by the user. - If you create a Module/Class with very generic behaviour that you want to reuse also in your other applications, make your own plugin (in vendor/plugins). Cheers, Dirk. On 20 aug, 10:30, Pål Bergström <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> deegee wrote: > > Depending on what type of class you''re thinking of: you can also > > create a class in the app/models folder, even if your model won''t be > > an ActiveRecord model (so no associated database table). Think of > > using that if your class is really a model, so creating objects that > > you want to view and manipulate in the usual MVC way. For example a > > class of static objects that can be auto-generated at runtime (and > > don''t need a database table because they will never change) like the > > 12 months of a year could be encapsulated in a model. > > > Dirk. > > > On 20 aug, 08:09, P l Bergstr m <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > I see. That makes sense. Just a thought, but perhaps that would be the > place to put different language variables? If a user set his/here > language settings to ''swe'' all variables that is in there and in the app > would output the right word in Swedish instead of English – that I''ve > statically entered in a class. > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---