[Rails] Re: Suggestion for how to batch add records photos

2009-10-11 Thread northband_101
I'm basically looking for a general consensus that this is a feasible approach - before diving in and realizing that its 'doomed'. I'll start this direction and see how it goes. Thanks! On Oct 11, 3:53 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: northband wrote: Hi -

[Rails] Re: Email photo to upload

2009-04-23 Thread northband_101
Thanks - Andrew, these are good leads. -NB On Apr 17, 11:14 pm, Andrew Timberlake and...@andrewtimberlake.com wrote: On Fri, Apr 17, 2009 at 6:32 PM, northband northb...@gmail.com wrote: Hi - I am curious has anyone worked on a project where you emailed a photo to your app - which then

[Rails] Re: Remove trailing zeros

2009-03-12 Thread northband_101
Thanks Matt - I'll try this out. Best, NB On Feb 27, 4:33 pm, Matt Jones al2o...@gmail.com wrote: The %g specifier to sprintf will do this automatically: %g % 1.0 = 1 %g % 1.375 = 1.375 --Matt Jones On Feb 27, 1:20 am, northband northb...@gmail.com wrote: Hi - I am working with

[Rails] Re: Remove trailing zeros

2009-02-27 Thread northband_101
Thanks - this seems easy enough. On Feb 27, 3:12 pm, pepe p...@betterrpg.com wrote: Maybe you can convert them to integers? my_float = 2.0 my_float = my_float.to_i if my_float == my_float.to_i Pepe On Feb 27, 1:20 am, northband northb...@gmail.com wrote: Hi - I am working with

[Rails] Re: Regular Expression question

2009-02-27 Thread northband_101
Awesome - this is a start - I'll take it from here. Thanks! On Feb 27, 4:14 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: On Feb 27, 2009, at 2:47 PM, northband wrote: Hi - I would like to use gsub() to strip decimals with trailing zeros from a string.  My string looks like

[Rails] Re: Create nested hash from array of objects

2009-02-19 Thread northband_101
Nice - thanks for the tip. I got this working great now. On Feb 19, 11:02 pm, Rick richard.t.ll...@gmail.com wrote: Looks like you're starting with ActiveRecord's so you could possibly take advantage of: spec_hash = Spec.find(4057).attributes and glue something together. On Feb 19,