J
James Dewey
I'm trying to make what amounts to a cloud files manager using the ruby
API. In the end I want login via MySQL and all that fun stuff, but for
now I want it to just -work-. I'm using eruby loaded via CGI on apache.
So I was able to list the containers on my account:
<% require 'rubygems'
require 'cloudfiles'
cf = CloudFiles::Connection::new('ryuujinx','APIKEYREMOVED') %>
<html>
<head>
<title>Cloud Files Manager</title>
</head>
<body bgcolor="#000000">
<font color="#33FF00">
<center>
<h1>List of Containers:</h1>
<%
cf::list_containers::each do |listcont|
puts listcont + "<br>"
end
%>
I could make it do it in a select menu with a form, etc, but my problem
is even if I do post it to a new page, I have no idea how to grab the
variables or anything.
The next step I would want to do is container =
cf::container('SELECTEDCONTAINER') for further manipulation such as the
ability to manage objects inside the container, but I'm kind of lost.
API. In the end I want login via MySQL and all that fun stuff, but for
now I want it to just -work-. I'm using eruby loaded via CGI on apache.
So I was able to list the containers on my account:
<% require 'rubygems'
require 'cloudfiles'
cf = CloudFiles::Connection::new('ryuujinx','APIKEYREMOVED') %>
<html>
<head>
<title>Cloud Files Manager</title>
</head>
<body bgcolor="#000000">
<font color="#33FF00">
<center>
<h1>List of Containers:</h1>
<%
cf::list_containers::each do |listcont|
puts listcont + "<br>"
end
%>
I could make it do it in a select menu with a form, etc, but my problem
is even if I do post it to a new page, I have no idea how to grab the
variables or anything.
The next step I would want to do is container =
cf::container('SELECTEDCONTAINER') for further manipulation such as the
ability to manage objects inside the container, but I'm kind of lost.