Using Ruby Libraries and Gems with a Shoes App

Using Ruby libraries and gems with a Shoes app

Hey, _why posted on his blog, hackety.org, about using gems within Shoes. I hope it helps!


Shoes.setup do
gem 'json >= 1.1.1'
gem 'activerecord'
end

require 'json'
require 'activerecord'

Shoes.app do
@msg = para "ALL SYSTEMS GO"
animate(20) { @msg.toggle }
end

Ruby Shoes and gems with native extensions

you're wrong, shoes CAN be run as a gem, you have different flavors (colors) of shoes.
Most people work with Red Shoes but you also have a Green Shoes implementation, i use it always with native extensions. Not all methods from red are available and possibly you have to change your code a little but it should work. Success !

Shoes and Gems

I hope your login module doesn't use HTTPS as I don't think that is supported in Shoes yet.



Related Topics



Leave a reply



Submit