views:

48

answers:

1

Hii all, In my Ruby code am able to generate messagebox but i would like to know how to see it at client side ,am running rails application means server is running on my machine and tha messagebox is also generating on my machine but am nor able not abble to see it client side anyone has any idea how to do that in ruby??

+1  A: 

Maybe I got your question not right, but isn't it a typically JavaScript-Alert case? ;)

alert("I am a message box with an ok button.");

Or did I get it wrong?


Edit

If you're using Rails 3 at least it's:

javascript_tag "alert('All is good')"
shevron
shevron i am trying to something like that but how do i call it from ruby
AMIT
Posted the answer in my edited post above. ;)
shevron