madzhuga / rails_workflow

Check Wiki for details
MIT License
323 stars 41 forks source link

Issue in rake db:migrate #3

Closed shubhamitc closed 9 years ago

shubhamitc commented 9 years ago

Issue with Json type column with PostgreSQL,

Stacktrace.......

singh@singh-Latitude-E5450:~/project/jen_etl/db/migrate$ bundle exec rake db:migrate --trace (in /home/singh/project/jen_etl) * Invoke db:migrate (first_time) * Invoke environment (first_time) * Execute environment * Invoke db:load_config (first_time) * Execute db:load_config * Execute db:migrate == 20150123172243 CreateWorkflowWfProcesses: migrating ======================== -- create_table(:workflow_processes) -> 0.0008s -- create_table(:workflow_operations) -> 0.0005s -- create_table(:workflow_process_templates) -> 0.0005s -- create_table(:workflow_operation_templates) -> 0.0005s -- add_column(:workflow_processes, :template_id, :integer) -> 0.0003s -- add_column(:workflow_processes, :type, :string) -> 0.0002s -- add_column(:workflow_operations, :process_id, :integer) -> 0.0003s -- add_column(:workflow_operations, :template_id, :integer) -> 0.0002s -- add_column(:workflow_operation_templates, :async, :boolean) -> 0.0003s -- add_column(:workflow_operations, :dependencies, :text) -> 0.0002s -- add_column(:workflow_operation_templates, :child_process_id, :integer) -> 0.0003s -- add_column(:workflow_operations, :child_process_id, :integer) -> 0.0002s -- add_column(:workflow_operation_templates, :assignment_id, :integer) -> 0.0002s -- add_column(:workflow_operation_templates, :assignment_type, :string) -> 0.0002s -- add_column(:workflow_operations, :assignment_id, :integer) -> 0.0002s -- add_column(:workflow_operations, :assignment_type, :string) -> 0.0003s -- add_column(:workflow_operations, :assigned_at, :datetime) -> 0.0002s -- add_column(:workflow_operation_templates, :kind, :string) -> 0.0002s -- add_column(:workflow_operation_templates, :role, :string) -> 0.0002s -- add_column(:workflow_operation_templates, :group, :string) -> 0.0002s -- add_column(:workflow_operations, :type, :string) -> 0.0002s -- add_column(:workflow_operations, :is_active, :boolean) -> 0.0002s -- add_column(:workflow_operation_templates, :instruction, :text) -> 0.0002s -- create_table(:workflow_contexts) rake aborted! StandardError: An error has occurred, this and all later migrations canceled:

undefined method json' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x000000054940a8>/var/lib/gems/1.9.1/gems/rails_workflow-0.2.2/db/migrate/20150123172243_create_workflow_wf_processes.rb:66:inblock in change' /var/lib/gems/1.9.1/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:202:in create_table' /var/lib/gems/1.9.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:662:inblock in method_missing' /var/lib/gems/1.9.1/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in block in say_with_time' /usr/lib/ruby/1.9.1/benchmark.rb:280:inmeasure'

madzhuga commented 9 years ago

@shubhamitc, can you please run

bundle exec rake about

and show me output?

shubhamitc commented 9 years ago

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 notifications@github.com 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/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

@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?

shubhamitc commented 9 years ago

Sure @maxim , I will check and get back to you.


From: Maxim Madzhuga notifications@github.com 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/madzhuga/rails_workflow/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.

shubhamitc commented 9 years ago

?@maxim, getting different error now as I did setup a new environment ,

singh@singh-Latitude-E5450:~/project/rails_workflow/workflow$ 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 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:~/project/rails_workflow/workflow$

Error ...........................................................

?Thanks,


From: Maxim Madzhuga notifications@github.com 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/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

You using ruby 1.9.3-p484 (x86_64-linux) - can you update it to ruby 2?

shubhamitc commented 9 years ago

@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 notifications@github.com 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/madzhuga/rails_workflow/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.

shubhamitc commented 9 years ago

@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 notifications@github.com 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/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

can you please add exception stacktrace here?

maxim commented 9 years ago

@shubhamitc Hi there, you are referencing the wrong maxim, so I keep receiving notifications.

shubhamitc commented 9 years ago

@maxim,

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:

?


From: Maxim Madzhuga notifications@github.com 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/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

@shubhamitc my bad. need to add slim dependencies :)

add to your Gemfile gem 'slim' gem 'slim-rails'

shubhamitc commented 9 years ago

@maxim,

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 notifications@github.com 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'

Reply to this email directly or view it on GitHubhttps://github.com/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

add to your Gemfile gem 'bootstrap-rails-engine'

madzhuga commented 9 years ago

will clean up dependencies like bottstrap-rails-engine shortly in next builds :(

shubhamitc commented 9 years ago

@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 notifications@github.com 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/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

Use will_paginate gem

9 апр. 2015 г., в 14:08, shubhamitc notifications@github.com написал(а):

@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 notifications@github.com 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/madzhuga/rails_workflow/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. — Reply to this email directly or view it on GitHub.

shubhamitc commented 9 years ago

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 notifications@github.com 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 notifications@github.com ???????(?):

@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 notifications@github.com 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/madzhuga/rails_workflow/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.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com/madzhuga/rails_workflow/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.

madzhuga commented 9 years ago

use gem devise to generate user.

kirantpatil commented 9 years ago

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:inblock 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:inblock 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

madzhuga commented 9 years ago

@kirantpatil what is your database?

kirantpatil commented 9 years ago

I think it is sqlite.

On Wed, May 6, 2015 at 2:42 PM, Maxim Madzhuga notifications@github.com wrote:

what is your database?

Reply to this email directly or view it on GitHub https://github.com/madzhuga/rails_workflow/issues/3#issuecomment-99392763 .

kirantpatil commented 9 years ago

Yes, it is sqlite.

madzhuga commented 9 years ago

@kirantpatil sqlite does not have json support.

kirantpatil commented 9 years ago

Ok, then I will install and use Postgresql.