Is it possible to insert records into a MySQL database by clicking on a link? I can do this with a form, but I see no tutorials, information on the internet that this is possible. I guess I am thinking along the lines of dynamically creating a link that would pass the values in a querystring. Can someone point me in the right direction? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You should be able to by using a similar method to create (in scaffold). Just use link_to: See http://pastie.caboo.se/71146 On 6/17/07, Mike Riley <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Is it possible to insert records into a MySQL database by clicking on a > link? I can do this with a form, but I see no tutorials, information on > the internet that this is possible. I guess I am thinking along the > lines of dynamically creating a link that would pass the values in a > querystring. Can someone point me in the right direction?-- Ramon Tayag --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ramon Tayag wrote:> You should be able to by using a similar method to create (in > scaffold). Just use link_to: > > See http://pastie.caboo.se/71146 > > On 6/17/07, Mike Riley <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> Is it possible to insert records into a MySQL database by clicking on a >> link? I can do this with a form, but I see no tutorials, information on >> the internet that this is possible. I guess I am thinking along the >> lines of dynamically creating a link that would pass the values in a >> querystring. Can someone point me in the right direction? > > -- > Ramon TayagRamon, Thanks for the help. I''ll give that a try. Mike Riley -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---