I am trying to get input from a CPTextField with a Ruby script. I have
learned how to do this with a CPURLRequest and a simple PHP script
(pasted below) and I want to do the same thing only with Ruby (and no
rails):
<?php
$input=$_GET["input"];
$output = "The number is: ".$input;
echo $output;
?>
I am having trouble figuring out what the Ruby equivalent to this PHP
code would be.
Any suggestions, hints, or links are greatly appreciated!
I would have posted this on the Ruby google group but I don't think
too many of those guys use Cappuccino.
Also- I'm not sure if this relevant but here is the link to the
Cappuccino/PHP tutorial:
http://fixinem.blogspot.com/2009/12/server-communication-tutorial-for.html
Thanks a bunch,
Calvin
Sinatra is a nice simple framework. I'd recommend trying that if you
don't want the full Rails stack.
-tom
> --
>
> You received this message because you are subscribed to the Google
> Groups "Cappuccino & Objective-J" group.
> To post to this group, send email to objec...@googlegroups.com.
> To unsubscribe from this group, send email to objectivej+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/objectivej?hl=en
> .
>
>
It seems like you could do something like:
get '/:input' do
# some code here
end
in Sinatra and get something good going.
- Calvin
> >http://fixinem.blogspot.com/2009/12/server-communication-tutorial-for...