Very simple question. How do i have just a simple button without a form , which calls an action on Click. Ashwin -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I think by definition buttons exist in forms. Perhaps Javascript using the call "onClick". On 8 April 2010 20:00, Ashwin Vel <velapanur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Very simple question. > > How do i have just a simple button without a form , which calls an > action on Click. > > > > > Ashwin > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Charles A. Lopez charlesalopez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org What''s your vision for your organization? What''s your biggest challenge? Let''s talk. (IBM Partner) -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
"Ashwin Vel" <velapanur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote in message news:c6eb2f16-e025-4d7c-b3ef-8a5e57fd9de2-PAXXFZk3kX5WAgDpVid4H2B/v6IoIuQBratpaaBEXXs@public.gmane.org> 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. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks a lot Charles , Joe On Apr 8, 6:56 pm, "Joe Smith" <unknown_kev_...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> "Ashwin Vel" <velapa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote in > messagenews:c6eb2f16-e025-4d7c-b3ef-8a5e57fd9de2-PAXXFZk3kX5WAgDpVid4H2B/v6IoIuQB@public.gmane.org.com... > > > 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.-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.