[Rails] Re: Authlogic -- gem or plugin?

2009-10-19 Thread Aaron Broad
The argument for the gem is that any improvements in security/bug fixes will be automatically included in your application if you continue to update your gems. The argument for the plugin is any changes in the gem won't break your code that was already working if you don't update your plugin. I

[Rails] Proper Way to Force Model to be Creation-time Only Member of another

2009-10-13 Thread Aaron Broad
Hi all, What is the proper way to do this. I have a Bundle model. And I wish for it to be able to have many Products. But I wish that the products that a bundle has only be able to be set at the creation time of the Bundle. That is once a Bundle is created I should not be able to remove or ad

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
eval do include RubyToJadeXML end p DateTime.now.jadexml p ActiveSupport::TimeZone.new("Atlantic Time (Canada)").now.jadexml Thanks again, Now where would you recommend I put this in a Rails app? Aaron On Sep 30, 8:57 pm, Robert Walker wrote: > Aaron Broad wrote: > > @seller.deadline.

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
appropriate place to put such a "re-opening" On Sep 30, 8:57 pm, Robert Walker wrote: > Aaron Broad wrote: > > @seller.deadline.strftime(fmt='%FT%T.000')@seller.deadline.strftime > > (fmt='%FT%T.000') > > By the way, I think in a case like yours

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
Or even simpler: @seller.deadline.strftime(fmt='%FT%T.000')@seller.deadline.strftime (fmt='%FT%T.000') correctly formats a ActiveRecord DateTime for SOAP communication with JADE java agent system. On Sep 30, 3:57 pm, Aaron Broad wrote: > Final

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
Final solution is as follows: @seller.deadline.to_datetime.strftime (fmt='%FT%T.000') gross but works and is parsed correctly.. I guess it silly JADE wants exactly 3 zeros On Sep 30, 1:22 pm, Robert Walker wrote: > Aaron Broad wrote: > > If I send over a DateTime.now it is a

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
ap will include some microseconds. thanks, Aaron On Sep 30, 1:22 pm, Robert Walker wrote: > Aaron Broad wrote: > > If I send over a DateTime.now it is accepted by the JADE server.  As > > does 5.minutes.since DateTime.now and such. > > SOAP/XML has a standard datetime format

[Rails] Re: SOAP Dates and Rails

2009-09-30 Thread Aaron Broad
ime came from... if it was a once a rails activerecord datetime.. thats had to_datetime called on it.. you're up a creek... thanks again, Aaron On Sep 30, 1:22 pm, Robert Walker wrote: > Aaron Broad wrote: > > If I send over a DateTime.now it is accepted by the JADE server.  

[Rails] DateTime optionally containing microseconds

2009-09-30 Thread Aaron Broad
Hi all, I'm sending DateTimes over soap to JADE agent system. If I send DateTime.now over it is accepted fine.. and ends up as: 2009-09-30T09:20:52.959452-03:00 However, if I convert a Rails model field to datetime and send it over its of class DateTime but loses the microseconds. Which my SO

[Rails] Re: django like admin interface

2009-09-30 Thread Aaron Broad
Hi Saurav, Here is a whole toolbox: http://ruby-toolbox.com/categories/rails_admin_interfaces.html So you can try a few. Really depends on your project. I've used ActiveScaffold quite a bit, and enjoy it. Aaron On Sep 30, 7:56 am, Saurav Chakraborty wrote: > Hi, > > I am building an applic

[Rails] SOAP Dates and Rails

2009-09-29 Thread Aaron Broad
king format (p @seller.deadline #where seller is a model): Tue, 29 Sep 2009 22:42:00 ADT -03:00 Thanks, Aaron Broad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to