I thought of content_for literally 15 seconds after clicking send on
this post :)

I'm using Rails3, and you're right, there is a heavy focus on moving
away from inline JS. Perhaps I should move away from Cake's bad
practices, rather than try to find equivalents for them in Rails :)

Thanks for the help!

On Aug 26, 1:53 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Well, there's content_for, for starters.  I think Rails provides some
> other methods for combining JS, but I'm not certain.
>
> > Otherwise, what would be the best practice in Rails for
> > unavoidable inline javascript output?
>
> Just don't write inline JS to start with!
>
> Rails 3 is more helpful in this respect than Rails 2, or so I'm told.
>
>
>
> > Many thanks
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> 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