나는 best_in_place gem을 사용하기 시작했습니다. 그것은 내 로컬 개발 컴퓨터에서 잘 작동하지만 내가 프로덕션 서버에 코드를 배포 할 때, 내가 얻을 :프로덕션 서버에서 정의되지 않은 메소드`best_in_place '
ActionView::Template::Error (undefined method `best_in_place' for #<#<Class:0xc088ef8>:0xba694a0>):
76: <% t.each do |ticket| %>
77: <tr>
78: <td><%= check_box_tag "tickets[ids][]", ticket.id, false, :class => "status_change" %></td>
79: <td><%= best_in_place ticket, :position, {:inner_class => "input-mini", :type => :input} %></td>
80: <td><%= ticket.id %></td>
81: <td><%= ticket.job_number %></td>
82: <td><%= link_to ticket.name, edit_ticket_path(ticket) %></td>
app/views/tickets/index.html.erb:79:in `block (3 levels) in _app_views_tickets_index_html_erb___947812068_98658810'
app/views/tickets/index.html.erb:76:in `block (2 levels) in _app_views_tickets_index_html_erb___947812068_98658810'
app/views/tickets/index.html.erb:56:in `each'
app/views/tickets/index.html.erb:56:in `block in _app_views_tickets_index_html_erb___947812068_98658810'
app/views/tickets/index.html.erb:50:in `_app_views_tickets_index_html_erb___947812068_98658810'
app/controllers/tickets_controller.rb:11:in `index'
그것은 보석이 설치되어 있지 않은 경우로합니다. 나는 bundle install
을했는지 확인했다.
보기 :
<td><%= best_in_place ticket, :position, {:inner_class => "input-mini", :type => :input} %></td>
Gemfile :
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development do
gem 'sqlite3'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :production do
gem "mysql", "~>2.8.1"
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
gem 'devise'
gem 'best_in_place'
gem 'paper_trail'
gem 'ckeditor_rails'
gem 'bootstrap-sass'
gem 'bootstrap-datepicker-rails'
gem 'carrierwave'
gem 'ransack'
gem 'nested_form'
gem 'will_paginate'
gem 'capistrano'
gem 'therubyracer'
'Gemfile.lock'에서 설치 한 보석인지 확인할 수 있습니까? – pungoyal
gemfile.lock에 보석이 표시됩니다. – dremme
Gemfile을 포함시킬 곳에 게시 할 수 있습니까? – lilwupster