You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
13:51:07 web.1 | Started POST "/project_requests/17/request_comments" for 10.0.131.29 at 2018-09-06 13:51:07 +0200
13:51:07 web.1 | Processing by RequestCommentsController#create as JS
13:51:07 web.1 | Parameters: {"utf8"=>"✓", "request_comment"=>{"science_comment"=>"test", "science_score"=>"5", "computational_comment"=>"test", "computational_score"=>"5", "socioeconomic_comment"=>"test", "socioeconomic_score"=>"5", "audit_comment"=>"test"}, "commit"=>"Create Request comment", "project_request_id"=>"17"}
13:51:07 web.1 | User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
13:51:07 web.1 | ProjectRequest Load (0.2ms) SELECT `project_requests`.* FROM `project_requests` WHERE `project_requests`.`id` = 17 LIMIT 1
13:51:07 web.1 | (0.1ms) BEGIN
13:51:07 web.1 | RequestComment Exists (0.2ms) SELECT 1 AS one FROM `request_comments` WHERE `request_comments`.`login` IS NULL AND `request_comments`.`request_id` = 17 LIMIT 1
13:51:07 web.1 | (0.1ms) COMMIT
13:51:07 web.1 | Rendering /home/vagrant/.rvm/gems/ruby-2.4.4/gems/smart_listing-1.2.2/app/views/smart_listing/create.js.erb
13:51:08 web.1 | Rendered /home/vagrant/.rvm/gems/ruby-2.4.4/gems/smart_listing-1.2.2/app/views/smart_listing/create.js.erb (1027.4ms)
13:51:08 web.1 | Completed 500 Internal Server Error in 1200ms (ActiveRecord: 1.0ms)
13:51:08 web.1 |
13:51:08 web.1 |
13:51:08 web.1 |
13:51:08 web.1 | NameError - undefined local variable or method `smart_listing_resource' for #<#<Class:0x00007fbd0dab4358>:0x00007fbce4ed4c90>
13:51:08 web.1 | Did you mean? smart_listing_render
13:51:08 web.1 | smart_listing_for:
What am I doing wrong?
When I try to use in-place editing on a resource itself (not nested) everything works OK. But with nested resource, I am not able to configure it right,
The text was updated successfully, but these errors were encountered:
I want to use in-place editing for nested resource
request_comments
inproject_requests
show.When I set up everything and calls CREATE action, I get an error
Undefined local variable or method `smart_listing_resource'
My files are:
app/controllers/project_requests_controller.rb
app/views/project_requests/show.html.haml
app/views/request_comments/index.html.haml
_app/views/request_comments/list.html.haml
app/views/request_comments/new.js.erb
app/views/request_comments/create.js.erb
_app/views/request_comments/form.html.haml
Error Log
What am I doing wrong?
When I try to use in-place editing on a resource itself (not nested) everything works OK. But with nested resource, I am not able to configure it right,
The text was updated successfully, but these errors were encountered: