I would like to insert a small amount of javascript onto a page, and
the only way that I can figure out how to do so is to make sure it is
all on one line ex
%script{:type => "text/javascript"}
$("#beta_signup_email").click(function() {this.value="";
this.style["text-align"]="left";});
Is there a way around this?
This also relates to an issue that I have had with rails code in a
view.
= link_to "Back", admin_account_url(@account), :class => "icon
back", :accesskey => "b", :title => "Back to Account (ctrl-b)"
Sometimes it would be nice to pretty things up like in erb to:
= link_to "Back", admin_account_url(@account),
:class => "icon back", :accesskey => "b",
:title => "Back to Account (ctrl-b)"
Is this doable?
Thanks for the help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---