Michael Pavling wrote in post #1074020: > 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 follow, and the components you need it split into?
Thanks Michael, Message column and example message looks like this: "The [user] is logged in via [hostname]" When i query the database and get back each of these matching rows, i would like to be able to split [user] and [hostname] into a user and host attributes so that i can call those attributes on my view -- 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.