I just typed a long post with my model, controller and view file
snippets, and lost it Here goes again:
I have a 2 postgres tables: files and lines. Files simply has an id
and a string name. Lines has a file_id, line_number and line_text. I
have the associations set up nicely so:
@lines = File.find(params[:id]).lines
works nicely. The only problem is that if a line has a ‘<’ in it,
anything after the ‘<’ is getting eaten (ie not showing up).