FinalCutServerIntegrationSample - making it work

Hello
I was wondering if anyone has been able to make work the Apple Proposed FinalCutServerIntegrationSample?

Rendering /Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/templates/re scues/layout.erb (internal servererror)

Having installed and restarted repeatedly I get the rail error below in the terminal when I go to localhost:3000/clips

Is this all worth it? Can it work? Is there an easier way to get a web api?

Imac, Mac OS X (10.6.6), Avid User, FCP, Lightworks etc

Posted on Jan 17, 2011 8:00 AM

Reply
8 replies

Jan 17, 2011 10:52 AM in response to chlowden

Below is the error I get when I go to localhost:3000/clips



NoMethodError in ClipsController#index

undefined method `in place_editfor' for ClipsController:Class

RAILS_ROOT: /fcsvr/review
Application Trace | Framework Trace | Full Trace

app/controllers/clips_controller.rb:53
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:203:in `load without_new_constantmarking'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:203:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:202:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:94:in `require orload'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:248:in `load missingconstant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:453:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:465:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/inflector.rb: 257:in `constantize'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active support/coreext/string/inflections.rb:148:in `constantize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/routing.rb:14 26:in `recognize'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:64
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:496:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:496:in `require'
/Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39

/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :170:in `handle_request'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :115:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :126:in `dispatch_cgi'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :9:in `dispatch'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/bin/mongrel_rails:281
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem originalrequire'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem originalrequire'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
script/server:3

app/controllers/clips_controller.rb:53
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:203:in `load without_new_constantmarking'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:203:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:202:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:94:in `require orload'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:248:in `load missingconstant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:453:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:465:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/inflector.rb: 257:in `constantize'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active support/coreext/string/inflections.rb:148:in `constantize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/routing.rb:14 26:in `recognize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :170:in `handle_request'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :115:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :126:in `dispatch_cgi'
/Library/Ruby/Gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb :9:in `dispatch'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem s/mongrel-1.1.5/bin/mongrel_rails:281
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:489:in `load'
/Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:64
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem originalrequire'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:496:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:342:in `new constantsin'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:496:in `require'
/Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem originalrequire'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
script/server:3

Request

Parameters:

None

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}


Response

Headers:

{"cookie"=>[],
"Cache-Control"=>"no-cache"}

Jan 18, 2011 4:45 AM in response to John F. Whitehead

Many thanks.
i am a real newbie. I tried unsuccessfully to install the plug using

script/plugin install git://github.com/rails/in placeediting.git

I managed to download the files but I have no idea where to put them.
https://github.com/rails/inplaceediting

I then modified the file
clips_controller.rb
removing lines

in place_editfor :clip, :description
in place_editfor :clip, :keywords

I was unable to find a view folder as I could not find anything.

The result is that I now have a page that I am unable to populate. Is this because I have not found the view lines?

Jan 18, 2011 5:27 AM in response to John F. Whitehead

Many thanks for such a quick reply

Below is the content of the _detail.erb file. I don't see to have any ref to the plug. Is this good?


<dl class="clip-info">
<dt class="clip-title">Title:</dt>
<dd class="clip-title"><%=h @clip.title %></dd>
<dt class="clip-desc">Description:</dt>
<dd class="clip-desc"><%= in place_editorfield :clip, :description, {}, :rows => 1 %></dd>
<dt class="clip-keywords">Keywords:</dt>
<dd class="clip-keywords"><%= in place_editorfield :clip, :keywords, {}, :rows => 1 %></dd>
<dt class="clip-owner">Owner:</dt>
<dd class="clip-pwner"><%=h @clip.owner %></dd>
</dl>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

FinalCutServerIntegrationSample - making it work

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.