# Scriptaculous effect not working

**URL:** <https://www.ruby-forum.com/t/scriptaculous-effect-not-working/193584>\
**Category:** Rails\
**Created:** [August 20, 2010, 2:30am UTC](https://www.ruby-forum.com/t/scriptaculous-effect-not-working/193584 "2010-08-20T02:30:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakx12](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Post date:** [August 20, 2010, 2:30am UTC](https://www.ruby-forum.com/t/scriptaculous-effect-not-working/193584/1 "2010-08-20T02:30:20Z")

</div>

Hey so here is my code:

\<% if @error == true %\>  
\<%= javascript\_tag “New Effect.Shake(‘form\_holder’); return false;” %\>  
\<% end %\>

I know that the scriptaculous library is being included in the head of  
my view, but for some reason the effect never works. Im using the effect  
to notify the user that their login was incorrect, hence the @error  
variable. That variable is set in my session creating action and upon an  
incorrect login the new action is rendered (there is nothing inside this  
action). However, when i make an incorrect login and the new action is  
rendered, the source code contains the javascript, just nothing happens!

Many thanks,

jakx.12
