Well, the code in the search view is executed when the view is rendered. It 
is not executed again when you inject the html using javascript.
So the if @group_trace code is only executed when the search view is 
rendered and @group_trace is not created yet.


What are you actually trying to achieve? What do you want to do with the if 
@group_trace code part? Why not just remove it? You're still adding the 
data by injecting the html using javascript.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/tN-N4eeOmnQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to