You could also add the url in your erb template with a "data"
attribute on the form and then read it with javascript. If you really
don't want to generate the template with the URL encoded (though I
don't think that will be a huge performance problem), you could
probably also grab the ID from the current URL with javascript
(window.location).

On Jan 23, 5:07 am, "Mateusz W." <[email protected]> wrote:
> Well, ideally I would like to have the views and javascripts split. I
> don't want to embed any javascript within my view. Something like this:
>
> http://bitprison.net/rails3_dynamic_javascript
>
> This, however, will make each user have "their own" javascript, since it
> has to be dynamically generated. Not ideal either.
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
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 [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