[Rails] Re: Extracting information out of a database column

2012-08-31 Thread Jordon Bedwell
On Friday, 31 August 2012 01:42:10 UTC-5, Ruby-Forum.com User wrote: Hi All, I'm new to rails and am trying to tackle a problem that I can't seem to find the right solution for. I have an existing database that im building a rails app on top of. One of my columns 'message' is a long

[Rails] Re: Extracting information out of a database column

2012-08-31 Thread Joshua Baldock
Jordon Bedwell wrote in post #1074013: On Friday, 31 August 2012 01:42:10 UTC-5, Ruby-Forum.com User wrote: I don't quite understand exactly what you mean but it sounds to me like you want a custom serializer.

[Rails] Re: Extracting information out of a database column

2012-08-31 Thread Joshua Baldock
Michael Pavling wrote in post #1074016: On 31 August 2012 07:41, Joshua Baldock li...@ruby-forum.com wrote: I have an existing database that im building a rails app on top of. One of my columns 'message' is a long string that I would like to be able to query and split into various attributes

Re: [Rails] Re: Extracting information out of a database column

2012-08-31 Thread Michael Pavling
On 31 August 2012 08:20, Joshua Baldock li...@ruby-forum.com wrote: Splitting the string and then storing them as additional attributes to the instance variable that contains the rest of the selected table values. Do you have an example of the string; the pattern that similar instances would