Ruby on Rails
Thursday, August 30, 2012
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 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.
Can you please let me know how I can achieve this within rails?
I don't quite understand exactly what you mean but it sounds to me like you want a custom serializer. http://stackoverflow.com/questions/4472479/custom-serialization-for-fields-in-rails
-- 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/6lDoxISEdbUJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment