On Nov 13, 2013, at 6:30 AM, Daynthan Kabilan <[email protected]> wrote:

> Hi friends,
> 
> How to use javascript variables in ruby.
> 
> i have activity id on a_id
> 
> function(a_id)
> {
> <%@foo=Activity.where("activity_id = ? ", a_id)
> }
> 
> how can solve it

It's not at all clear to me what you are asking, but remember:

- Ruby runs on the server;
- Javascript runs in the browser.
- Sometimes Ruby on the server is used to create/modify Javascript to be run in 
the browser.

-- 
Scott Ribe
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
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/CA4EA9DE-9178-48C9-B4C5-81B3140A974A%40elevated-dev.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to