This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
forked from kyan/vzaar
-
Notifications
You must be signed in to change notification settings - Fork 0
A version of the vzaar gem that works with Rails 3
License
red-ant/vzaar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a fork of the original vzaar gem. It has been further tweaked (and better documented) to work with rails 3.1 on one of our own personal projects. The rails generator from the original gem doesn't work anymore, but everything else seems to work fine. == Rails 3.1 == Puts this on your Gemfile: gem 'vzaar', git: 'http://github.com/tailorbirds/vzaar.git' gem 'oauth', '0.3.6' gem 'httpclient' Next, copy the following folders (since the generator is broken): * {vzaar-folder}/rails_generators/templates/images/* into {rails_root}/app/assets/images * {vzaar-folder}/rails_generators/templates/javascripts into {rails_root}/app/assets/javascripts/vzaar * {vzaar-folder}/rails_generators/templates/stylesheets into {rails_root}/app/assets/stylesheets/vzaar * {vzaar-folder}/rails_generators/templates/flash into {rails_root}/public/flash/vzaar * {vzaar-folder}/rails_generators/templates/views/uploader.html.erb into {rails_root}/app/views/vzaar/index.html.erb * {vzaar-folder}/lib/rails/controllers/vzaar_controller.rb into {rails_root}/app/controllers/vzaar_controller.rb If you don't know where the gem was installed (by bundler), you can find it with 'bundle show vzaar' You will need to configure your username and application secret in VzaarController.connect_to_vzaar accordinly, and also add the following routes to config/routes.rb: match "/vzaar" => "vzaar#index" match "/vzaar/signature" => "vzaar#signature" match "/vzaar/process_video" => "vzaar#process_video" After that, you should be able to access vzaar/index and see your uploaded videos and upload new ones to vzaar. == TODO == * Make generator work * Add specs * Make the default uploader better Original Author:: Mariusz Lusiak <mailto:[email protected]> Changes made by:: Stefano Diem Benatti <mailto:[email protected]>
About
A version of the vzaar gem that works with Rails 3
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 62.8%
- Ruby 32.4%
- CSS 4.5%
- HTML 0.3%