Hi, I have the following scenario for my "models": Products can have many different Formats and an attribute for their association relationship is "price". So formats_products join table has the following fields: product_id, format_id, price Now, when I have a shopping cart, I would like to associate the shopping cart to the join table of formats_products, since only a unique combination of format_id and product_id can determine the price. How do I do this elegantly in Rails, since formats_products table cannot have an id field for each record? I understand that I can use raw sql to find a solution to this problem, but I was wondering if Rails already offers something elegant for this scenario. Regards, Pb _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hello I''am new to ruby.i developed a simple questionnaire application with ruby on rails.i need to integrate this to an already existing portal.The portal is based on jetspeed.Do i need to use jruby? Is there a way to convert the ruby scripts to exe?When i tried to convert the ruby application to exe ,i received a mesage sayin the init.rb file was missing?what does that imply?Please help me out. Thanks and regards Ramya
On Apr 9, 2005 6:18 PM, Ramya Ramaswamy <rumyaiyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello > > I''am new to ruby.i developed a simple questionnaire application with > ruby on rails.i need to integrate this to an already existing > portal.The portal is based on jetspeed.Do i need to use jruby? > Is there a way to convert the ruby scripts to exe?When i tried to > convert the ruby application to exe ,i received a mesage sayin the > init.rb file was missing?what does that imply?Please help me out. > Thanks and regards > RamyaMy last portlet experience was with that abomination known as websphere. I assume that jetspeed (1 or 2) has some kind of way of integrating with non-java web applications, just get the rails application working and configure jetspeed to talk with it. I think you''re better off asking for this kind of help from the jetspeed guys though.> _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz
hey koz, thanks a lot for ur reply :).I have sent in a mail to jetspeed mailing list.Would let u know if come across any solution. thanks once again ciao ramya On Apr 9, 2005 4:04 PM, Michael Koziarski <koziarski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 9, 2005 6:18 PM, Ramya Ramaswamy <rumyaiyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello > > > > I''am new to ruby.i developed a simple questionnaire application with > > ruby on rails.i need to integrate this to an already existing > > portal.The portal is based on jetspeed.Do i need to use jruby? > > Is there a way to convert the ruby scripts to exe?When i tried to > > convert the ruby application to exe ,i received a mesage sayin the > > init.rb file was missing?what does that imply?Please help me out. > > Thanks and regards > > Ramya > > My last portlet experience was with that abomination known as > websphere. I assume that jetspeed (1 or 2) has some kind of way of > integrating with non-java web applications, just get the rails > application working and configure jetspeed to talk with it. I think > you''re better off asking for this kind of help from the jetspeed guys > though. > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Cheers > > Koz >
Hi, I think running RoR as a channel inside Jetspeed with JRuby would be a hell of a mess to keep working right. I trust you''ll go quite insane. I am currently looking at doing a similar thing with WebSphere portal, so I''ve concocted a few ideas on this based on my past experience doing similar things with uPortal: 1. Use a "screen scraper" portlet that simply hits your RoR web app, grabs the HTML, and then re-renders it in the channel. Basically the portal acts like a proxy. If you use CSS based layout and keep your HTML super thin, then this can really compete on performance and simplicity with the other methods below. 2. Write your RoR web app so it''s nothing more than a web service (RoR has great support for this). Then on the portlet side you are simply writing the GUI. I don''t like this since one of the main attractions of RoR is the GUI side of things. 3. Use an iframe for the portlet''s contents that simply points at the RoR web application. This is the super easy way and probably the fastest method. 4. Write a portlet that "summarizes" the RoR apps main interface, and then launches to the main RoR app when they click on something. This is my personal favorite since it looks like the app is in the portal, but then you don''t have to deal with the crap of doing portlet integration with something else. The summary data is a perfect candidate for doing a web service. With all of these solutions you''ll run into a problem with authentication. The user will log into the portal, but you''ll need a way to log them into the RoR app. This is really hard even with a web service based backend since most portals try to be smarter than you and keep the user''s authentication credentials a secret thus preventing you from sending them on to the backend app. It gets more horrendous as you begin to log into apps that have their own user database. There''s a couple ways to solve this: * Yale CAS -- http://jasigch.princeton.edu:9000/display/CAS/Yale+CAS +Server It let''s auth people off their web browser using cookies and kerberos. I''m not sure if there''s a ruby binding though, and this means setting up extra infrastructure, but it is damn secure. * Straight Kerberos -- If you''re doing a web service you might be able to just pull off GSS or Kerberos authentication. * CryptoWallet -- http://www.zedshaw.com/writings/CryptoWallet/ A shameless plug, but I wrote this years ago for a portal project. It probably would need some updating, but it would let you store application credentials that the portal can use to log into the backend app. The main advantage of CW is that you don''t need to setup anything other than some diskspace and then fill it with IDs. It uses standard java crypto for everything and is as secure as I can make it. * Other "Wallet" Systems -- There''s other systems built into some portals similar to CW. Not sure if JetSpeed has any though. Anyway, let me know what you end up doing. Zed On Sat, 2005-04-09 at 11:48 +0530, Ramya Ramaswamy wrote:> Hello > > I''am new to ruby.i developed a simple questionnaire application with > ruby on rails.i need to integrate this to an already existing > portal.The portal is based on jetspeed.Do i need to use jruby? > Is there a way to convert the ruby scripts to exe?When i tried to > convert the ruby application to exe ,i received a mesage sayin the > init.rb file was missing?what does that imply?Please help me out. > Thanks and regards > Ramya > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
Hi, I have received no response to my question in the mailing list, or irc chat or from an expert I wrote to directly. Perhaps, I did not explain my scenario properly. I need to describe a many-to-many association from a table X to an existing join table Y_Z that already describes a many-to-many association for tables Y and Z. I am wondering if Rails has an elegant solution for this scenario. I know I can manage a solution using custom SQL code. Real life scenario below... Table "products" Table "formats" Table "formats_products" ---------------------------------- ---------------------------------- --------------------------------------------- | id | name | description| | id | name | description| | product_id | format_id | price | ---------------------------------- ---------------------------------- --------------------------------------------- Table "carts" Need a M:N join table "carts_formats_products" --------------------------- ----------------------------------------------------------------- | id | customer_id | | cart_id | ????? | --------------------------- ----------------------------------------------------------------- I need to know if Rails provides a way to define M:N relationship between (shopping) carts and formats_products table since the price of each product is determined by the unique combination of product_id and format_id and each record in the table formats_products needs to have a has_and_belongs_to_many relationship with shopping_carts. Now, again, how do I create something like a "carts_formats_products" (hypothetical name) join table and use Rails to describe the has_and_belongs_to_many relationship? I''d be grateful for suggestions on different approaches to solving this problem. Thanks, Pb>From: "Pranav Bihari" <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: [Rails] describing associations on a join table >Date: Thu, 07 Apr 2005 21:18:47 +0000 > >Hi, > >I have the following scenario for my "models": >Products can have many different Formats and an attribute for their >association relationship is "price". >So formats_products join table has the following fields: product_id, >format_id, price > >Now, when I have a shopping cart, I would like to associate the shopping >cart to the join table of formats_products, since only a unique combination >of format_id and product_id can determine the price. How do I do this >elegantly in Rails, since formats_products table cannot have an id field >for each record? > >I understand that I can use raw sql to find a solution to this problem, but >I was wondering if Rails already offers something elegant for this >scenario. > >Regards, >Pb > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today it''s FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi, Sorry about the formatting mess in my last mail. I need to describe a many-to-many association from a table X to an existing join table Y_Z that already describes a many-to-many association for tables Y and Z. I am wondering if Rails has an elegant solution for this scenario. I know I can manage a solution using custom SQL code. Problem scenario below... Table "products" with fields (| id | name | description|) Table "formats" with fields (| id | name | description|) Table "formats_products" with fields (| product_id | format_id | price |) Table "carts" with fields (| id | customer_id|) Need an M:N join table "carts_formats_products" with fields (| cart_id | ????? |) I need to know if Rails provides a way to define M:N relationship between (shopping) carts and formats_products table since the price of each product is determined by the unique combination of product_id and format_id and each record in the table formats_products needs to have a has_and_belongs_to_many relationship with shopping_carts. Now, again, how do I create something like a "carts_formats_products" (hypothetical name) join table and use Rails to describe the has_and_belongs_to_many relationship? I''d be grateful for suggestions on different approaches to solving this problem. Thanks, Pb>From: "Pranav Bihari" <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: RE: [Rails] describing associations on a join table Date: Wed, 13 >Apr 2005 09:53:21 +0000 > >Hi, > >I have received no response to my question in the mailing list, or irc chat >or from an expert I wrote to directly. Perhaps, I did not explain my >scenario properly. > >I need to describe a many-to-many association from a table X to an existing >join table Y_Z that already describes a many-to-many association for tables >Y and Z. I am wondering if Rails has an elegant solution for this scenario. >I know I can manage a solution using custom SQL code. > >Real life scenario below... > >Table "products" Table "formats" >Table "formats_products" >---------------------------------- ---------------------------------- > --------------------------------------------- >| id | name | description| | id | name | description| | >product_id | format_id | price | >---------------------------------- ---------------------------------- > --------------------------------------------- > >Table "carts" Need a M:N join table >"carts_formats_products" >--------------------------- >----------------------------------------------------------------- >| id | customer_id | | cart_id | ????? > | >--------------------------- >----------------------------------------------------------------- > >I need to know if Rails provides a way to define M:N relationship between >(shopping) carts and formats_products table since the price of each product >is determined by the unique combination of product_id and format_id and >each record in the table formats_products needs to have a >has_and_belongs_to_many relationship with shopping_carts. > >Now, again, how do I create something like a "carts_formats_products" >(hypothetical name) join table and use Rails to describe the >has_and_belongs_to_many relationship? > >I''d be grateful for suggestions on different approaches to solving this >problem. > >Thanks, >Pb > >>From: "Pranav Bihari" <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> >>Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>Subject: [Rails] describing associations on a join table >>Date: Thu, 07 Apr 2005 21:18:47 +0000 >> >>Hi, >> >>I have the following scenario for my "models": >>Products can have many different Formats and an attribute for their >>association relationship is "price". >>So formats_products join table has the following fields: product_id, >>format_id, price >> >>Now, when I have a shopping cart, I would like to associate the shopping >>cart to the join table of formats_products, since only a unique >>combination of format_id and product_id can determine the price. How do I >>do this elegantly in Rails, since formats_products table cannot have an id >>field for each record? >> >>I understand that I can use raw sql to find a solution to this problem, >>but I was wondering if Rails already offers something elegant for this >>scenario. >> >>Regards, >>Pb >> >>_________________________________________________________________ >>Express yourself instantly with MSN Messenger! Download today it''s FREE! >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> >>_______________________________________________ >>Rails mailing list >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>http://lists.rubyonrails.org/mailman/listinfo/rails > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today it''s FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
David Heinemeier Hansson
2005-Apr-13 10:09 UTC
Re: describing associations on a join table
> Now, again, how do I create something like a "carts_formats_products" > (hypothetical name) join table and use Rails to describe the > has_and_belongs_to_many relationship? > > I''d be grateful for suggestions on different approaches to solving > this problem.You don''t. What you do is to reveal the missing domain model, which could be Purchase. class Purchase < ActiveRecord::Base belongs_to :product_id belongs_to :format belongs_to :cart def price # calculate or retrieve from db end end M-M relationships are already pushing the border of a missing domain model in their base state. Once you start to complicate matters by adding N-way joins and attributes, you''re definitely in need of another domain model. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.loudthinking.com/ -- Broadcasting Brain
Thanks David. I greatly appreciate your prompt response. Pb>From: David Heinemeier Hansson <david-OiTZALl8rpK0mm7Ywyx6yg@public.gmane.org> >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >Subject: Re: [Rails] describing associations on a join table Date: Wed, 13 >Apr 2005 12:09:13 +0200 > >>Now, again, how do I create something like a "carts_formats_products" >>(hypothetical name) join table and use Rails to describe the >>has_and_belongs_to_many relationship? >> >>I''d be grateful for suggestions on different approaches to solving this >>problem. > >You don''t. What you do is to reveal the missing domain model, which could >be Purchase. > >class Purchase < ActiveRecord::Base > belongs_to :product_id > belongs_to :format > belongs_to :cart > > def price > # calculate or retrieve from db > end >end > >M-M relationships are already pushing the border of a missing domain model >in their base state. Once you start to complicate matters by adding N-way >joins and attributes, you''re definitely in need of another domain model. >-- >David Heinemeier Hansson, >http://www.basecamphq.com/ -- Web-based Project Management >http://www.rubyonrails.org/ -- Web-application framework for Ruby >http://www.loudthinking.com/ -- Broadcasting Brain > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails_________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org
2005-Apr-13 13:31 UTC
RE: describing associations on a join table
Pranav, I would look at adding a id to the formats_products table - lets say "formats_products_id" and then you have a standard join between card_id and formats_products_id. This method would probably be a little more future proof because I would imagine that it could be conceivable that you might vary your pricing by other factors other then product_id and format_id (such as high volume customers, sales, etc, etc) and if you explicitly put the product_id and format_id in the new join table it might be more difficult to make any changes in the future... This would also require minimal changes to the existing schema you have - the new "formats_products_id" would be just a "autoincrement" type field. John W Higgins develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org Quoting Pranav Bihari <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>:> Hi, > > Sorry about the formatting mess in my last mail. > > I need to describe a many-to-many association from a table X to an existing > join table Y_Z that already describes a many-to-many association for tables > Y and Z. I am wondering if Rails has an elegant solution for this scenario. > I know I can manage a solution using custom SQL code. > > Problem scenario below... > > Table "products" with fields (| id | name | description|) > Table "formats" with fields (| id | name | description|) > Table "formats_products" with fields (| product_id | format_id | price |) > Table "carts" with fields (| id | customer_id|) > Need an M:N join table "carts_formats_products" with fields (| cart_id | > ????? |) > > I need to know if Rails provides a way to define M:N relationship between > (shopping) carts and formats_products table since the price of each product > is determined by the unique combination of product_id and format_id and each > record in the table formats_products needs to have a has_and_belongs_to_many > relationship with shopping_carts. > > Now, again, how do I create something like a "carts_formats_products" > (hypothetical name) join table and use Rails to describe the > has_and_belongs_to_many relationship? > > I''d be grateful for suggestions on different approaches to solving this > problem. > > Thanks, > Pb > > > >From: "Pranav Bihari" <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> > >Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >Subject: RE: [Rails] describing associations on a join table Date: Wed, 13 > >Apr 2005 09:53:21 +0000 > > > >Hi, > > > >I have received no response to my question in the mailing list, or irc chat > >or from an expert I wrote to directly. Perhaps, I did not explain my > >scenario properly. > > > >I need to describe a many-to-many association from a table X to an existing > >join table Y_Z that already describes a many-to-many association for tables > >Y and Z. I am wondering if Rails has an elegant solution for this scenario. > >I know I can manage a solution using custom SQL code. > > > >Real life scenario below... > > > >Table "products" Table "formats" > >Table "formats_products" > >---------------------------------- ---------------------------------- > > --------------------------------------------- > >| id | name | description| | id | name | description| | > >product_id | format_id | price | > >---------------------------------- ---------------------------------- > > --------------------------------------------- > > > >Table "carts" Need a M:N join table > >"carts_formats_products" > >--------------------------- > >----------------------------------------------------------------- > >| id | customer_id | | cart_id | ????? > > | > >--------------------------- > >----------------------------------------------------------------- > > > >I need to know if Rails provides a way to define M:N relationship between > >(shopping) carts and formats_products table since the price of each product > >is determined by the unique combination of product_id and format_id and > >each record in the table formats_products needs to have a > >has_and_belongs_to_many relationship with shopping_carts. > > > >Now, again, how do I create something like a "carts_formats_products" > >(hypothetical name) join table and use Rails to describe the > >has_and_belongs_to_many relationship? > > > >I''d be grateful for suggestions on different approaches to solving this > >problem. > > > >Thanks, > >Pb > > > >>From: "Pranav Bihari" <pbihari-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> > >>Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >>To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >>Subject: [Rails] describing associations on a join table > >>Date: Thu, 07 Apr 2005 21:18:47 +0000 > >> > >>Hi, > >> > >>I have the following scenario for my "models": > >>Products can have many different Formats and an attribute for their > >>association relationship is "price". > >>So formats_products join table has the following fields: product_id, > >>format_id, price > >> > >>Now, when I have a shopping cart, I would like to associate the shopping > >>cart to the join table of formats_products, since only a unique > >>combination of format_id and product_id can determine the price. How do I > >>do this elegantly in Rails, since formats_products table cannot have an id > >>field for each record? > >> > >>I understand that I can use raw sql to find a solution to this problem, > >>but I was wondering if Rails already offers something elegant for this > >>scenario. > >> > >>Regards, > >>Pb > >> > >>_________________________________________________________________ > >>Express yourself instantly with MSN Messenger! Download today it''s FREE! > >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >> > >>_______________________________________________ > >>Rails mailing list > >>Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >>http://lists.rubyonrails.org/mailman/listinfo/rails > > > >_________________________________________________________________ > >Express yourself instantly with MSN Messenger! Download today it''s FREE! > >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > >_______________________________________________ > >Rails mailing list > >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >http://lists.rubyonrails.org/mailman/listinfo/rails > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it''s FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Hey, Thanks a lot for ur help.I used Iframes and pointed to ROR application and it worked.I also tried using the File Server portlet and was glad when it worked. Thanks a lot for your timely help. Regards Ramya On 4/10/05, Zed A. Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote:> Hi, > > I think running RoR as a channel inside Jetspeed with JRuby would be a > hell of a mess to keep working right. I trust you''ll go quite insane. > > I am currently looking at doing a similar thing with WebSphere portal, > so I''ve concocted a few ideas on this based on my past experience doing > similar things with uPortal: > > 1. Use a "screen scraper" portlet that simply hits your RoR web app, > grabs the HTML, and then re-renders it in the channel. Basically the > portal acts like a proxy. If you use CSS based layout and keep your > HTML super thin, then this can really compete on performance and > simplicity with the other methods below. > > 2. Write your RoR web app so it''s nothing more than a web service (RoR > has great support for this). Then on the portlet side you are simply > writing the GUI. I don''t like this since one of the main attractions of > RoR is the GUI side of things. > > 3. Use an iframe for the portlet''s contents that simply points at the > RoR web application. This is the super easy way and probably the > fastest method. > > 4. Write a portlet that "summarizes" the RoR apps main interface, and > then launches to the main RoR app when they click on something. This is > my personal favorite since it looks like the app is in the portal, but > then you don''t have to deal with the crap of doing portlet integration > with something else. The summary data is a perfect candidate for doing > a web service. > > With all of these solutions you''ll run into a problem with > authentication. The user will log into the portal, but you''ll need a > way to log them into the RoR app. This is really hard even with a web > service based backend since most portals try to be smarter than you and > keep the user''s authentication credentials a secret thus preventing you > from sending them on to the backend app. It gets more horrendous as you > begin to log into apps that have their own user database. > > There''s a couple ways to solve this: > > * Yale CAS -- http://jasigch.princeton.edu:9000/display/CAS/Yale+CAS > +Server It let''s auth people off their web browser using cookies and > kerberos. I''m not sure if there''s a ruby binding though, and this means > setting up extra infrastructure, but it is damn secure. > * Straight Kerberos -- If you''re doing a web service you might be able > to just pull off GSS or Kerberos authentication. > * CryptoWallet -- http://www.zedshaw.com/writings/CryptoWallet/ A > shameless plug, but I wrote this years ago for a portal project. It > probably would need some updating, but it would let you store > application credentials that the portal can use to log into the backend > app. The main advantage of CW is that you don''t need to setup anything > other than some diskspace and then fill it with IDs. It uses standard > java crypto for everything and is as secure as I can make it. > * Other "Wallet" Systems -- There''s other systems built into some > portals similar to CW. Not sure if JetSpeed has any though. > > Anyway, let me know what you end up doing. > > Zed > > > On Sat, 2005-04-09 at 11:48 +0530, Ramya Ramaswamy wrote: > > Hello > > > > I''am new to ruby.i developed a simple questionnaire application with > > ruby on rails.i need to integrate this to an already existing > > portal.The portal is based on jetspeed.Do i need to use jruby? > > Is there a way to convert the ruby scripts to exe?When i tried to > > convert the ruby application to exe ,i received a mesage sayin the > > init.rb file was missing?what does that imply?Please help me out. > > Thanks and regards > > Ramya > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > >