<p> <%= job.title %> <%= job.id %> <%= job.created_at %> </p> <div id="inner_content_ibox_#{job.id}" style="display:none;" >s <div style="background:#000000;color:#ffffff;border:1px dashed #FFFFFF;padding:15px;margin:15px;"> </div> </div> gives me: <p> test123 7123 2010-02-23 17:53:49 UTC </p> <div id="inner_content_ibox_#{job.id}" style="display:none;" >s <div style="background:#000000;color:#ffffff;border:1px dashed #FFFFFF;padding:15px;margin:15px;"> </div> </div> what is wrong with the ID of the DIV? thx -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 30 March 2010 19:21, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> <div id="inner_content_ibox_#{job.id}" style="display:none;" > > > what is wrong with the ID of the DIV?The "job.id" call isn''t inside Ruby delimiters, so it''s just getting rendered as HTML. You want: <div id="inner_content_ibox_<%=job.id%>" style="display:none;" > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.