Comments (25)
@shubhamitc, can you please run
bundle exec rake about
and show me output?
from rails_workflow.
Hi Maxim,
Please find the details of rails, hopefully you can suggest something
singh@singh-Latitude-E5450:~/project/jen_etl$ bundle exec rake about
About your application's environment
Rails version 4.2.1
Ruby version 1.9.3-p484 (x86_64-linux)
RubyGems version 1.8.23
Rack version 1.5
JavaScript Runtime therubyracer (V8)
Middleware Rack::Sendfile, ActionDispatch::Static, Rack::Lock, #ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000002320a08, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, RequestStore::Middleware, Rails::Rack::Logger, ActionDispatch::ShowExceptions, WebConsole::Middleware, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag
Application root /home/singh/project/jen_etl
Environment development
Database adapter sqlite3
Database schema version 20150407144659
?Thanks,
Skype : annu.shubham
From: Maxim Madzhuga [email protected]
Sent: Wednesday, April 8, 2015 1:51 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
@shubhamitchttps://github.com/shubhamitc, can you please run
bundle exec rake about
and show me output?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-90839464.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
@shubhamitc you using sqlite which has no json support. Json can be stored as string to sqlite and then parsed to json after loading from db (I have necessary code but it is not in master branch). Can you switch to postgres?
from rails_workflow.
Sure @maxim , I will check and get back to you.
From: Maxim Madzhuga [email protected]
Sent: Wednesday, April 8, 2015 3:34 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
@shubhamitchttps://github.com/shubhamitc you using sqlite which has no json support. Json can be stored as string to sqlite and then parsed to json after loading from db (I have necessary code but it is not in master branch). Can you switch to postgres?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-90868650.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
?@maxim, getting different error now as I did setup a new environment ,
singh@singh-Latitude-E5450:/project/rails_workflow/workflow$ bundle exec rake about/project/rails_workflow/workflow$
About your application's environment
Rails version 4.2.1
Ruby version 1.9.3-p484 (x86_64-linux)
RubyGems version 1.8.23
Rack version 1.5
Middleware Rack::Sendfile, ActionDispatch::Static, Rack::Lock, #ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000003453b40, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, RequestStore::Middleware, Rails::Rack::Logger, ActionDispatch::ShowExceptions, WebConsole::Middleware, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag
Application root /home/singh/project/rails_workflow/workflow
Environment development
Database adapter postgresql
Database schema version 20150217161051
singh@singh-Latitude-E5450:
Error ...........................................................
- column_exists?(:rails_workflow_processes, :updated_at)
-> 0.0011s
-- column_exists?(:rails_workflow_processes, :template_id)
-> 0.0011s
-- column_exists?(:rails_workflow_processes, :type)
-> 0.0011s
rake aborted!
SyntaxError: /var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/operations/assignments.rb:9: syntax error, unexpected tLPAREN_ARG, expecting keyword_do_LAMBDA or tLAMBEG
scope :by_role, -> (role) { joins(:template).wher...
^
/var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/operations/assignments.rb:9: syntax error, unexpected tLAMBEG, expecting keyword_end
... scope :by_role, -> (role) { joins(:template).where(rails...
... ^
/var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/operations/assignments.rb:9: syntax error, unexpected '}', expecting keyword_end
/var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/operations/assignments.rb:10: syntax error, unexpected tLPAREN_ARG, expecting keyword_do_LAMBDA or tLAMBEG
scope :by_group, -> (group) { joins(:template).whe...
^
/var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/operations/assignments.rb:10: syntax error, unexpected tLAMBEG, expecting keyword_end
... scope :by_group, -> (group) { joins(:template).where(rails...
... ^
?Thanks,
From: Maxim Madzhuga [email protected]
Sent: Wednesday, April 8, 2015 3:34 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
@shubhamitchttps://github.com/shubhamitc you using sqlite which has no json support. Json can be stored as string to sqlite and then parsed to json after loading from db (I have necessary code but it is not in master branch). Can you switch to postgres?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-90868650.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
You using ruby 1.9.3-p484 (x86_64-linux) - can you update it to ruby 2?
from rails_workflow.
@maxim, its not possible to download ruby in restrictive firewall access. I will give it a try once I reach home.
Hope it works.
Thanks,
From: Maxim Madzhuga [email protected]
Sent: Wednesday, April 8, 2015 4:49 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
You using ruby 1.9.3-p484 (x86_64-linux) - can you update it to ruby 2?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-90882914.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
@maxim, as per your suggestion upgrading to ruby-2.2.1 solved the migration issue, however now there is an issue to find the index template in predef dir.
Please suggest a workaround.
[cid:3d4ad9d4-d320-4b99-953e-6ce9b0cf7480]
From: Shubhamkumar Singh
Sent: Wednesday, April 8, 2015 5:03 PM
To: madzhuga/rails_workflow; madzhuga/rails_workflow
Subject: RE: [rails_workflow] Issue in rake db:migrate (#3)
@maxim, its not possible to download ruby in restrictive firewall access. I will give it a try once I reach home.
Hope it works.
Thanks,
From: Maxim Madzhuga [email protected]
Sent: Wednesday, April 8, 2015 4:49 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
You using ruby 1.9.3-p484 (x86_64-linux) - can you update it to ruby 2?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-90882914.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
can you please add exception stacktrace here?
from rails_workflow.
@shubhamitc Hi there, you are referencing the wrong maxim, so I keep receiving notifications.
from rails_workflow.
Stacktrace ......................................
singh@singh-Latitude-E5450:~/project/rails_workflow$ rails s
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
[2015-04-09 13:45:56] INFO WEBrick 1.3.1
[2015-04-09 13:45:56] INFO ruby 2.2.1 (2015-02-26) [x86_64-linux]
[2015-04-09 13:45:56] INFO WEBrick::HTTPServer#start: pid=12339 port=3000
Started GET "/workflow" for 127.0.0.1 at 2015-04-09 13:46:03 +0530
ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by RailsWorkflow::OperationsController#index as HTML
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:31: warning: already initialized constant RailsWorkflow::Status::NOT_STARTED
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:31: warning: previous definition of NOT_STARTED was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:32: warning: already initialized constant RailsWorkflow::Status::IN_PROGRESS
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:32: warning: previous definition of IN_PROGRESS was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:33: warning: already initialized constant RailsWorkflow::Status::DONE
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:33: warning: previous definition of DONE was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:34: warning: already initialized constant RailsWorkflow::Status::WAITING
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:34: warning: previous definition of WAITING was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:35: warning: already initialized constant RailsWorkflow::Status::ERROR
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:35: warning: previous definition of ERROR was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:36: warning: already initialized constant RailsWorkflow::Status::CANCELED
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:36: warning: previous definition of CANCELED was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:37: warning: already initialized constant RailsWorkflow::Status::SKIPPED
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:37: warning: previous definition of SKIPPED was here
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:38: warning: already initialized constant RailsWorkflow::Status::ROLLBACK
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:38: warning: previous definition of ROLLBACK was here
Completed 500 Internal Server Error in 43ms (ActiveRecord: 0.0ms)
ActionView::MissingTemplate (Missing template rails_workflow/operations/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder]}. Searched in:
-
"/home/singh/project/rails_workflow/app/views"
-
"/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/views"
):
actionview (4.2.1) lib/action_view/path_set.rb:46:infind' actionview (4.2.1) lib/action_view/lookup_context.rb:121:in
find'
actionview (4.2.1) lib/action_view/renderer/abstract_renderer.rb:18:infind_template' actionview (4.2.1) lib/action_view/renderer/template_renderer.rb:40:in
determine_template'
actionview (4.2.1) lib/action_view/renderer/template_renderer.rb:8:inrender' actionview (4.2.1) lib/action_view/renderer/renderer.rb:42:in
render_template'
actionview (4.2.1) lib/action_view/renderer/renderer.rb:23:inrender' actionview (4.2.1) lib/action_view/rendering.rb:100:in
_render_template'
actionpack (4.2.1) lib/action_controller/metal/streaming.rb:217:in_render_template' actionview (4.2.1) lib/action_view/rendering.rb:83:in
render_to_body'
actionpack (4.2.1) lib/action_controller/metal/rendering.rb:32:inrender_to_body' actionpack (4.2.1) lib/action_controller/metal/renderers.rb:37:in
render_to_body'
actionpack (4.2.1) lib/abstract_controller/rendering.rb:25:inrender' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:16:in
render'
actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:inblock (2 levels) in render' activesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in
block in ms'
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:inrealtime' activesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in
ms'
actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:inblock in render' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:87:in
cleanup_view_runtime'
activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:25:incleanup_view_runtime' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:43:in
render'
actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:10:indefault_render' responders (2.1.0) lib/action_controller/responder.rb:236:in
default_render'
responders (2.1.0) lib/action_controller/responder.rb:170:into_html' responders (2.1.0) lib/action_controller/responder.rb:163:in
respond'
responders (2.1.0) lib/action_controller/responder.rb:156:incall' responders (2.1.0) lib/action_controller/respond_with.rb:203:in
respond_with'
rails_workflow (0.2.2) app/controllers/rails_workflow/operations_controller.rb:28:inindex' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in
send_action'
actionpack (4.2.1) lib/abstract_controller/base.rb:198:inprocess_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in
process_action'
actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:inblock in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in
call'
activesupport (4.2.1) lib/active_support/callbacks.rb:117:incall' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in
block (2 levels) in compile'
activesupport (4.2.1) lib/active_support/callbacks.rb:505:incall' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in
call'
activesupport (4.2.1) lib/active_support/callbacks.rb:92:in_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in
_run_process_action_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in
process_action'
actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in
block in process_action'
activesupport (4.2.1) lib/active_support/notifications.rb:164:inblock in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activesupport (4.2.1) lib/active_support/notifications.rb:164:ininstrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in
process_action'
actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:inprocess_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in
process_action'
actionpack (4.2.1) lib/abstract_controller/base.rb:137:inprocess' actionview (4.2.1) lib/action_view/rendering.rb:30:in
process'
actionpack (4.2.1) lib/action_controller/metal.rb:196:indispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'
actionpack (4.2.1) lib/action_controller/metal.rb:237:inblock in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in
call'
actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:indispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in
serve'
actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:inblock in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in
each'
actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:inserve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in
call'
railties (4.2.1) lib/rails/engine.rb:518:incall' railties (4.2.1) lib/rails/railtie.rb:194:in
public_send'
railties (4.2.1) lib/rails/railtie.rb:194:inmethod_missing' actionpack (4.2.1) lib/action_dispatch/routing/mapper.rb:51:in
serve'
actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:inblock in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in
each'
actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:inserve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in
call'
rack (1.6.0) lib/rack/etag.rb:24:incall' rack (1.6.0) lib/rack/conditionalget.rb:25:in
call'
rack (1.6.0) lib/rack/head.rb:13:incall' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in
call'
actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:incall' rack (1.6.0) lib/rack/session/abstract/id.rb:225:in
context'
rack (1.6.0) lib/rack/session/abstract/id.rb:220:incall' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in
call'
activerecord (4.2.1) lib/active_record/query_cache.rb:36:incall' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in
call'
activerecord (4.2.1) lib/active_record/migration.rb:378:incall' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'
activesupport (4.2.1) lib/active_support/callbacks.rb:88:incall' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in
_run_callbacks'
activesupport (4.2.1) lib/active_support/callbacks.rb:776:in_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in
call'
actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:incall' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call'
web-console (2.1.2) lib/web_console/middleware.rb:37:incall' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call'
railties (4.2.1) lib/rails/rack/logger.rb:38:incall_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in
block in call'
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:inblock in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in
tagged'
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:intagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in
call'
request_store (1.1.0) lib/request_store/middleware.rb:8:incall' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in
call'
rack (1.6.0) lib/rack/methodoverride.rb:22:incall' rack (1.6.0) lib/rack/runtime.rb:18:in
call'
activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall' rack (1.6.0) lib/rack/lock.rb:17:in
call'
actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:incall' rack (1.6.0) lib/rack/sendfile.rb:113:in
call'
railties (4.2.1) lib/rails/engine.rb:518:incall' railties (4.2.1) lib/rails/application.rb:164:in
call'
rack (1.6.0) lib/rack/lock.rb:17:incall' rack (1.6.0) lib/rack/content_length.rb:15:in
call'
rack (1.6.0) lib/rack/handler/webrick.rb:89:inservice' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in
service'
/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:inrun' /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in
block in start_thread'Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (20.0ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/_markup.html.erb (0.4ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.3ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.4ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/console.js.erb within layouts/javascript (13.4ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.4ms)
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.1.2/lib/web_console/templates/index.html.erb (28.5ms)
?
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 12:56 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
can you please add exception stacktrace here?
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91135801.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
@shubhamitc my bad. need to add slim dependencies :)
add to your Gemfile
gem 'slim'
gem 'slim-rails'
- after that app will see slim templates (right now it searches erb etc templates).
from rails_workflow.
That solve the issue of slim however now I am having issues with bootstrap,
Stacktrace ...........................................
/usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/concerns/rails_workflow/status.rb:38: warning: previous definition of ROLLBACK was here
RailsWorkflow::Operation Load (65.7ms) SELECT "rails_workflow_operations".* FROM "rails_workflow_operations" WHERE "rails_workflow_operations"."status" = 3 ORDER BY "rails_workflow_operations"."created_at" DESC
Rendered /usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/views/rails_workflow/operations/index.html.slim within layouts/rails_workflow/application (137.3ms)
Completed 500 Internal Server Error in 249ms (ActiveRecord: 86.6ms)
ActionView::Template::Error (couldn't find file 'bootstrap/bootstrap'
(in /usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/assets/stylesheets/rails_workflow/application.css:13)):
7:
8: title Rails Workflow Engine
9:
10: = stylesheet_link_tag "rails_workflow/application"
11: = javascript_include_tag "rails_workflow/application"
12: = csrf_meta_tags
13: ?
Thanks,
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 1:57 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
@shubhamitchttps://github.com/shubhamitc my bad. need to add slim dependencies :)
add to your Gemfile
gem 'slim'
gem 'slim-rails'
- after that app will see slim templates (right now it searches erb etc templates).
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91148718.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
add to your Gemfile
gem 'bootstrap-rails-engine'
from rails_workflow.
will clean up dependencies like bottstrap-rails-engine shortly in next builds :(
from rails_workflow.
@maxim, Thanks for your help as GUI is working now. GUI looks good too.
Can you suggest how to make process tab work and add some operation, for now I am getting some exception for no pagination method in Process model.
Exception ,
undefined method `paginate' for #RailsWorkflow::Process::ActiveRecord_Relation:0x007f3269362a48
.................................
I am new to rails, and planning to create a tool which uses these features. Hope we both can help each other.
Thanks,
Skype : annu.shubham
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 3:27 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
will clean up dependencies like bottstrap-rails-engine shortly in next builds :(
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91179436.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
Use will_paginate gem
9 апр. 2015 г., в 14:08, shubhamitc [email protected] написал(а):
@maxim, Thanks for your help as GUI is working now. GUI looks good too.
Can you suggest how to make process tab work and add some operation, for now I am getting some exception for no pagination method in Process model.
Exception ,
undefined method `paginate' for #RailsWorkflow::Process::ActiveRecord_Relation:0x007f3269362a48
.................................
I am new to rails, and planning to create a tool which uses these features. Hope we both can help each other.
Thanks,
Skype : annu.shubham
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 3:27 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)will clean up dependencies like bottstrap-rails-engine shortly in next builds :(
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91179436.
Please consider the environment before printing this e-mailDisclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
—
Reply to this email directly or view it on GitHub.
from rails_workflow.
Thanks @maxim, now I am getting different error while clicking user operation page ,
Showing /usr/local/rvm/gems/ruby-2.2.1/gems/rails_workflow-0.2.2/app/views/rails_workflow/operation_templates/_user_role_form.html.slim where line #13 raised:
uninitialized constant ActionView::CompiledTemplates::User
Extracted source (around line #13):
11
12
13
14
15
16
= f.label :role, class: "control-label col-sm-2"
.col-sm-10
= f.collection_select(:role, User.get_role_values, :last, :first, {include_blank: true}, {class: "form-control"})
.form-group
= f.label :title, class: "control-label col-sm-2"
Thanks,?
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 3:42 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)
Use will_paginate gem
9 ???. 2015 ?., ? 14:08, shubhamitc [email protected] ???????(?):
@maxim, Thanks for your help as GUI is working now. GUI looks good too.
Can you suggest how to make process tab work and add some operation, for now I am getting some exception for no pagination method in Process model.
Exception ,
undefined method `paginate' for #RailsWorkflow::Process::ActiveRecord_Relation:0x007f3269362a48
.................................
I am new to rails, and planning to create a tool which uses these features. Hope we both can help each other.
Thanks,
Skype : annu.shubham
From: Maxim Madzhuga [email protected]
Sent: Thursday, April 9, 2015 3:27 PM
To: madzhuga/rails_workflow
Cc: Shubhamkumar Singh
Subject: Re: [rails_workflow] Issue in rake db:migrate (#3)will clean up dependencies like bottstrap-rails-engine shortly in next builds :(
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91179436.
Please consider the environment before printing this e-mailDisclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
Reply to this email directly or view it on GitHub.
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-91182300.
Please consider the environment before printing this e-mail
Disclaimer: This communication is for the exclusive use of the intended recipient(s) and shall not attach any liability on the originator or ITC Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group Companies. If you are the addressee, the contents of this e-mail are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorization from the originator or ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Infotech India Ltd./ its Holding company/ its Subsidiaries/ its Group Companies.
from rails_workflow.
use gem devise to generate user.
from rails_workflow.
Me too have the same issue while running the below command.
$ bundle exec rake db:migrate
.....
.....
-- add_column(:workflow_operations, :type, :string)
-> 0.0003s
-- add_column(:workflow_operations, :is_active, :boolean)
-> 0.0008s
-- add_column(:workflow_operation_templates, :instruction, :text)
-> 0.0003s
-- create_table(:workflow_contexts)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method json' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x00000002d0fc30>/home/kpatil/.rvm/gems/ruby-2.2.2/gems/rails_workflow-0.2.2/db/migrate/20150123172243_create_workflow_wf_processes.rb:66:in
block in change'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:202:in create_table' /home/kpatil/.rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:662:in
block in method_missing'
/home/kpatil/.rvm/gems/ruby-2.2.2/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in `block in say_with_time'
System details:
[kpatil@dhcppc14 demo]$ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[kpatil@dhcppc14 demo]$ rails -v
Rails 4.2.1
from rails_workflow.
@kirantpatil what is your database?
from rails_workflow.
I think it is sqlite.
On Wed, May 6, 2015 at 2:42 PM, Maxim Madzhuga [email protected]
wrote:
what is your database?
Reply to this email directly or view it on GitHub
#3 (comment)
.
from rails_workflow.
Yes, it is sqlite.
from rails_workflow.
@kirantpatil sqlite does not have json support.
from rails_workflow.
Ok, then I will install and use Postgresql.
from rails_workflow.
Related Issues (20)
- postgres HOT 10
- Consider deprecating use of the 'guid' gem
- Use Active Job API HOT 5
- Broken in new Rails 5 project HOT 2
- support for sqlite3? HOT 2
- Assign operation on run time after completion a operation HOT 4
- undefined method `role_text' for #<Class:0x007fd0e389f3a8> HOT 5
- [FAQ] Production ready HOT 12
- undefined method `get_role_values' HOT 3
- What do background and asynchronous really mean? HOT 2
- Remove pg dependency HOT 2
- Syntax error in latest rev. HOT 2
- Isn't working on Rails 5 HOT 5
- Some inconsistencies in the documentation
- Rails 5.1 Incompatibility HOT 2
- ActiveRecord::Migration is not supported
- rails generate rails_workflow:install shows error HOT 1
- Error with Rails 5.2.0: undefined method `respond_to' HOT 4
- undefined method `map' for nil:NilClass in operation_templates_controller.rb
- rails generate rails_workflow:install fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails_workflow.