This is probably a simple question, but I have this class that I wrote that will be used in the controller that will encrypt some information. I''m just unsure of where to put this class code for the encryption - should it go in one of my models, or should it be in a file all by itself. I just not sure where to put it because it doesn''t seem like it belongs in the controller or models folder. Thanks, -S -- 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 -~----------~----~----~----~------~----~------~--~---
On Nov 29, 2007 12:12 PM, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > This is probably a simple question, but I have this class that I wrote > that will be used in the controller that will encrypt some information. > I''m just unsure of where to put this class code for the encryption - > should it go in one of my models, or should it be in a file all by > itself. I just not sure where to put it because it doesn''t seem like it > belongs in the controller or models folder. Thanks,You can put it in the lib/ directory. This is added to $LOAD_PATH for you. --~--~---------~--~----~------------~-------~--~----~ 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 could place them under tools helper folder. On Nov 29, 2007 12:12 PM, Shandy Nantz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > This is probably a simple question, but I have this class that I wrote > that will be used in the controller that will encrypt some information. > I''m just unsure of where to put this class code for the encryption - > should it go in one of my models, or should it be in a file all by > itself. I just not sure where to put it because it doesn''t seem like it > belongs in the controller or models folder. Thanks, > > -S > -- > 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 -~----------~----~----~----~------~----~------~--~---