[Rails] Re: Non Database

2010-07-09 Thread MattB
Okay thanks, going to try that. Matt. On Jul 9, 1:32 pm, Colin Law wrote: > On 9 July 2010 12:40, MattB wrote: > > > > > HI Colin, > > > What might a model not derived from ActiveRecord look like, and what's > > the advantage of doing that? I'm looking up data from a 3rd party API, > > but som

Re: [Rails] Re: Non Database

2010-07-09 Thread Colin Law
On 9 July 2010 12:40, MattB wrote: > > HI Colin, > > What might a model not derived from ActiveRecord look like, and what's > the advantage of doing that? I'm looking up data from a 3rd party API, > but somply have the code in the controller, without a model. It looks exactly like an ActiveRecord

[Rails] Re: Non Database

2010-07-09 Thread MattB
HI Colin, What might a model not derived from ActiveRecord look like, and what's the advantage of doing that? I'm looking up data from a 3rd party API, but somply have the code in the controller, without a model. Tnx, Matt. On Jul 9, 9:18 am, Colin Law wrote: > On 8 July 2010 16:30, Colin Law

[Rails] Re: Non Database

2010-07-09 Thread MattB
There's also this: http://rubyforge.org/projects/net-tftp/ which I originally ignored as it's /old/ but the code looks quite clean. On Jul 9, 8:25 am, "Adrian Wadey" wrote: > Thank you Matt and Colin, both a great help. > > Adrian > > Hi Adrian, > > Have a look at this for some (Ruby) code ideas

RE: [Rails] Re: Non Database

2010-07-09 Thread Adrian Wadey
Thank you Matt and Colin, both a great help. Adrian Hi Adrian, Have a look at this for some (Ruby) code ideas: http://pseudo-flaw.net/content/tftpgrab/ After that, it depends what your data looks like, and what you need to do with it. Matt. On Jul 8, 11:21 am, "Adrian Wadey" wrote: > Hi, >

[Rails] Re: Non Database

2010-07-08 Thread MattB
Hi Adrian, Have a look at this for some (Ruby) code ideas: http://pseudo-flaw.net/content/tftpgrab/ After that, it depends what your data looks like, and what you need to do with it. Matt. On Jul 8, 11:21 am, "Adrian Wadey" wrote: > Hi, > > I am looking at using Ruby in an application that,

[Rails] Re: Non-database dropdown select - works fine, but why the weird order?

2008-09-24 Thread Maurício Linhares
Hashes in Ruby do not keep the insertion order, you should do it like this: <%= select_tag :module, options_for_select( [ ['All',''], ['Evidence' , 1], ['Assets', 2], ['Inventory', 3], ['Water' , 4], ['Laboratory' , 5], ['State EPA', 6], ['Administrator', 7]]), :style => "width:206px", :id => :in