def alert(msg)
call 'alert' , message
end

check this link
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html#M001452

try once..

On Wed, Jan 21, 2009 at 12:12 AM, Zhao Yi
<[email protected]>wrote:

>
> raj vuppala wrote:
> > hi,
> >     Try with alert ()
> > using java script...
> >
> > On Tue, Jan 20, 2009 at 11:50 PM, Zhao Yi
>
> I got undefined method `alert` error in my controller.
> --
> Posted via http://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