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 to then be able to display each >> of those attributes in a view. >> >> I'm trying to implement this into the controller, but don't seem to be >> getting any where. > > Which bit are you having trouble with? Accessing the legacy table? > Splitting the string? Displaying it in a view?
Splitting the string and then storing them as additional attributes to the instance variable that contains the rest of the selected table values. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.