On Tue, Jul 20, 2010 at 15:51, Johann <[email protected]> wrote:
> def show_one_publisher_seven_days
> �...@title = 'foo'
> end
...
> %script{:type => "text/javascript"}
>
> var title_text = <% @title %> <<<===============
Can you tell us *how* it's not working, i.e., what it does instead?
Are you getting some kind of Javascript error?
I don't know haml yet, but it looks to me like that would probably
result in saying:
var title_text = foo
whereas you want::
var title_text = 'foo';
Try adding the quotes and semicolon and see what happens. If that
doesn't fix it, see if you're getting a JS error, and if so, tell us
what it is.
-Dave
--
Specialization is for insects. | Professional: http://davearonson.com
-Robert Anson Heinlein | Programming: http://codosaur.us
-------------------------------+ Leadership: http://dare2xl.com
Have Pun, Will Babble! -me | Et Cetera: http://davearonson.net
--
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.