Hi, I am new to Ruby. I want to use Ruby in browser and integrate it with HTML. Could somebody help me to do so? Please suggest me how to achieve this? I want to use my code in call my Ruby script with the help of HTML code. Is it possible? FYI: I am not using RAILS. I am using Ruby and Watir to automate the my web applications. -- Thanks and Regards, Amit -- 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.
On Aug 1, 2011, at 9:38 AM, Amit Bobade wrote:> Hi, > > I am new to Ruby. I want to use Ruby in browser and integrate it > with HTML. Could somebody help me to do so? > Please suggest me how to achieve this? > > I want to use my code in call my Ruby script with the help of HTML > code. Is it possible? > > FYI: I am not using RAILS. I am using Ruby and Watir to automate the > my web applications.If you want to integrate Ruby code with an HTML interface, you basically have a couple of options: CGI and Rack (which is just a much more modern implementation of CGI, IMO). There were tons of examples of both on Google last time I checked. Either of these will provide you a way to map Web form inputs to the Ruby script''s STDIN interface. Walter -- 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.
On 1 August 2011 14:38, Amit Bobade <amit.srpce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I am new to Ruby. I want to use Ruby in browser and integrate it with HTML. > Could somebody help me to do so? > Please suggest me how to achieve this? > > I want to use my code in call my Ruby script with the help of HTML code. Is > it possible? > > FYI: I am not using RAILS. I am using Ruby and Watir to automate the my web > applications.You cannot call ruby within the browser, you have to use javascript or similar. You can of course make requests to the server in the normal way, where you can use ruby. Colin -- 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.
Amit Bobade wrote in post #1014173:> > I want to use my code in call my Ruby script with the help of HTML code. > Is > it possible? > > FYI: I am not using RAILS. >Then why are you posting your question in a rails forum?> I am new to Ruby. I want to use Ruby in browser and integrate it with > HTML. > Could somebody help me to do so? > Please suggest me how to achieve this? >_______ | | _________ | |<------ ~~ -------> |_______| ------- server: browser: ruby html python flash perl javascript php jsp+servlets Your options: Use your new found ruby skills to program a browser that understands ruby rather than javascript, and then convince more than 5 people download your browser and read your blog. -- 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-/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.