Call Action on button Click

Very simple question.

How do i have just a simple button without a form , which calls an
action on Click.

Ashwin

I think by definition buttons exist in forms. Perhaps Javascript using
the
call “onClick”.

On 8 April 2010 20:00, Ashwin V. [email protected] wrote:


You received this message because you are subscribed to the Google G.
“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][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Charles A. Lopez
[email protected]

What’s your vision for your organization?
What’s your biggest challenge?

Let’s talk.
(IBM Partner)

“Ashwin V.” [email protected] wrote in
message
news:[email protected]

Very simple question.

How do i have just a simple button without a form , which calls an
action on Click.

I think you want button_to, which works pretty much just like link_to.
It
actually creates an html form that has just one button and nothing else.

Thanks a lot Charles , Joe

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs