how to assign a id dinamically to checkbox created dinamical

<%for x in @xrecords%>
<%= check_box_tag ( "<%x.id%>","word",false, :onclick =>
remote_function( ))%>
<%end%>
but this is not taking <%x.id%> but throwing exception,please let me
know if there is a way to do this ie assigning the id dinamically as i
loop

Hi Vasu,

You need to be putting x.id within curly brackets so that it reads:

<%= check_box_tag ( "#{x.id}","word",false, :onclick =>

remote_function( ))%>

That should stop the exception.

Kind Regards

Robin