hi all, i''m writing an app which doesn''t use an sql database, but an openldap one. i''m not using activeldap, so can''t go with that approach (found it too resource intensive). once a user is logged in via the login/authenticate controller/action, they''re redirected to main/welcome - basically the ldap connection object is left behined and i need a way to access it from main controller. i have my login mechanism in the application controller, and would like to have some models. are there any docs for using rails in this way? cheers. -- 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 11/21/06, Fox <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > hi all, > i''m writing an app which doesn''t use an sql database, but an openldap > one. i''m not using activeldap, so can''t go with that approach (found it > too resource intensive). > > once a user is logged in via the login/authenticate controller/action, > they''re redirected to main/welcome - basically the ldap connection > object is left behined and i need a way to access it from main > controller. > > i have my login mechanism in the application controller, and would like > to have some models. are there any docs for using rails in this way?There is nothing stating that you have to use ActiveRecord classes for your models. You should be able to stick any Ruby class in the app/models directory of your application and access it from your controllers. cheers.> > -- > Posted via http://www.ruby-forum.com/. > > > >HTH, Michael Guterl --~--~---------~--~----~------------~-------~--~----~ 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 can also use ActiveRecord without a database. I took some code from technoweenie (Rick Olson) and built a tutorial that shows how to build an email form for your site. Following this approach, you could have models that have validations but don''t have tables :) http://www.bphogan.com/learn/pdf/tableless_contact_form.pdf On 11/21/06, Michael Guterl <mguterl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On 11/21/06, Fox <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > hi all, > > i''m writing an app which doesn''t use an sql database, but an openldap > > one. i''m not using activeldap, so can''t go with that approach (found it > > too resource intensive). > > > > once a user is logged in via the login/authenticate controller/action, > > they''re redirected to main/welcome - basically the ldap connection > > object is left behined and i need a way to access it from main > > controller. > > > > i have my login mechanism in the application controller, and would like > > to have some models. are there any docs for using rails in this way? > > > There is nothing stating that you have to use ActiveRecord classes for > your models. You should be able to stick any Ruby class in the app/models > directory of your application and access it from your controllers. > > cheers. > > > > -- > > Posted via http://www.ruby-forum.com/ . > > > > > > > > > HTH, > Michael Guterl > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---