On 13 November 2013 14:40, Daynthan Kabilan <[email protected]> wrote: > hi > > here i have mention example code > > <script type="text/javascript"> > > var js_name="daya"; > > <%=@user=User.where("name=?", js_name%>
Remember the above is evaluated on the /server/ before the page is rendered. js_name is not meaningful at that time. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5JA8OhDZfu_GbAMbVc0svwdSiBKynPCq9-bVkN9pwuw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

