-
All replies
-
Helpful answers
-
Jan 17, 2011 10:52 AM in response to chlowdenby chlowden,Below is the error I get when I go to localhost:3000/clips
NoMethodError in ClipsController#index
undefined method `inplace_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 `loadwithout_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 `newconstantsin'
/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 `requireorload'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:248:in `loadmissingconstant'
/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/activesupport/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 `newconstantsin'
/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 `newconstantsin'
/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 `gemoriginalrequire'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gemoriginalrequire'
/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 `loadwithout_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 `newconstantsin'
/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 `requireorload'
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies. rb:248:in `loadmissingconstant'
/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/activesupport/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 `newconstantsin'
/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 `gemoriginalrequire'
/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 `newconstantsin'
/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 `gemoriginalrequire'
/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 17, 2011 7:43 PM in response to chlowdenby John F. Whitehead,"inplace_editfor" is not included in Rails 2.x as it was in 1.x (see the Rails docs for more)--it's now a plugin.
You could install that, though for most installations I do I usually just remove it from the controller & view. It's kind of cool but not essential. -
Jan 18, 2011 4:45 AM in response to John F. Whiteheadby chlowden,Many thanks.
i am a real newbie. I tried unsuccessfully to install the plug using
script/plugin install git://github.com/rails/inplaceediting.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
inplace_editfor :clip, :description
inplace_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 4:50 AM in response to chlowdenby John F. Whitehead,If you remove the lines you don't need the plugin.
The view file is ../app/views/clips/_detail.erb -
Jan 18, 2011 5:27 AM in response to John F. Whiteheadby chlowden,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"><%= inplace_editorfield :clip, :description, {}, :rows => 1 %></dd>
<dt class="clip-keywords">Keywords:</dt>
<dd class="clip-keywords"><%= inplace_editorfield :clip, :keywords, {}, :rows => 1 %></dd>
<dt class="clip-owner">Owner:</dt>
<dd class="clip-pwner"><%=h @clip.owner %></dd>
</dl> -
Jan 18, 2011 6:06 AM in response to chlowdenby John F. Whitehead,that is it, you have to remove the calls to inplace_editorfield. -
Jan 18, 2011 9:00 AM in response to John F. Whiteheadby chlowden,Whoops. i did not see the wood from the trees. -
Feb 5, 2011 7:32 AM in response to chlowdenby RCJetPilot,I am having this same problem... Can anyone help?
Thanks