Giter Club home page Giter Club logo

jueso's Introduction

Crowdfunding platform

This is the README file for a crowdfunding platform created first for jue.so website (Shanghai, 2011).

View test website http://deep-sword-8508.herokuapp.com/

Functionalities

Crowdfunding platform

  • Crowfunding solution : rewarding, funding, deadline+expiration
  • Follow project life through updates and comments
  • Project moderation : submission require admin approval
  • All registered users can submit projects

For creative people

  • Customize profile (avatar, geo-loc, etc)
  • Advanced users can open a personal portfolio
  • Profile can be turn into personal website

Community-oriented

  • Follow projects + users
  • Post updates through profile
  • Update profile through social networks (to be implemented)

Others

  • Editorial : projects can be featured on home
  • Multilingual : Includes English and Chinese
  • Beta test : build for beta test and production

Admin

You can access admin control panel through

yourwebsite.com/admin

The ADMIN users are NOT related with users regitered through front-end website.

They are stored in separate tables and models (AdminUser).

Admins can be created through console only :

clemsos@ubuntu:~/Sites/jueso$ rails c
Loading development environment (Rails 3.0.9)
1.9.3p0 :001 > a = AdminUser.new
1.9.3p0 :002 > a.email = "[email protected]" 
1.9.3p0 :003 > a.password = "password"
1.9.3p0 :004 > a.save!
 => true 

About Users

For front-end users, there is 4 different users types (Role) :

* Admin : can do everything
* Member : can edit his profile, start a Proposal
* Artist : advanced profile (portfolio
* Institution 

You can add roles through admin interface. Permissions management : check app/models/ability.rb

Upload a project :

  1. Register

  2. Confirm account

  3. Upload a project proposal (Proposal)

  4. Proposals are reviewed by Admin (pending, rejected, accepted)

  5. If proposal is accepted, then it becomes a project (Project)

    • published
    • unpublished
    • funded
    • expired (time out)
    • deleted (by Admin or User)

Enable beta test mode

When Beta mode is enable, you will have to add users to Beta list before they can register (BetaInvite).

To enable/disable beta invitations, uncomment/comment line 11 in app/model/User.rb

before_validation :beta_invited?

Requirements

Written with :

  • Rails 3
  • Ruby 1.9.3
  • Mysql 5
  • ImageMagik

Available under MIT License, Clément Renaud @clemsos, 2011

jueso's People

Contributors

clemsos avatar taweili avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jueso's Issues

delayed_job mailer

There is no system to execute the delayed jobs (devise emails...)

i tried to setup the delayed jobs.
everything seems to work fine ... except that i don't really get how to execute them :P

:run_at => Proc.new { 5.minutes.from_now.in_time_zone }

i thought :run_at will trigger them but it doesn't.
locally i rake jobs:work manually, but i just won't to delay it one minute to not suffer the loading time of sending email

Is this project active?

Hi,

Great project. Just wondering if it is still active...

I am trying to run it but when I click on "New Project" at the admin site, I've got the error below...

Are there any updates still not merged to github?

Many thanks,
Ronaldo

 NameError in Admin/projects#new

Showing /home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/app/views/active_admin/resource/new.html.arb where line #1 raised:

uninitialized constant Project::Feature

Extracted source (around line #1):

1: render renderer_for(:new)

Rails.root: /home/ronaldocpontes/workspace/jueso
Application Trace | Framework Trace | Full Trace

activerecord (3.0.9) lib/active_record/base.rb:1205:in `compute_type'
activerecord (3.0.9) lib/active_record/reflection.rb:162:in `klass'
formtastic (1.2.4) lib/formtastic.rb:1518:in `find_raw_collection_for_column'
formtastic (1.2.4) lib/formtastic.rb:1488:in `find_collection_for_column'
formtastic (1.2.4) lib/formtastic.rb:841:in `select_input'
formtastic (1.2.4) lib/formtastic.rb:1280:in `inline_input_for'
formtastic (1.2.4) lib/formtastic.rb:132:in `block in input'
formtastic (1.2.4) lib/formtastic.rb:131:in `map'
formtastic (1.2.4) lib/formtastic.rb:131:in `input'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:26:in `block in input'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:112:in `with_new_form_buffer'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:26:in `input'
formtastic (1.2.4) lib/formtastic.rb:302:in `block in inputs'
formtastic (1.2.4) lib/formtastic.rb:302:in `collect'
formtastic (1.2.4) lib/formtastic.rb:302:in `inputs'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:16:in `block in inputs'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:112:in `with_new_form_buffer'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/form_builder.rb:16:in `inputs'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/resource_controller/form.rb:27:in `block in default_form_config'
actionpack (3.0.9) lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
actionpack (3.0.9) lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer'
actionpack (3.0.9) lib/action_view/helpers/capture_helper.rb:40:in `capture'
actionpack (3.0.9) lib/action_view/helpers/form_helper.rb:545:in `fields_for'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/client_side_validations-82ebd07a5fa1/lib/client_side_validations/action_view/form_helper.rb:45:in `fields_for'
actionpack (3.0.9) lib/action_view/helpers/form_helper.rb:320:in `form_for'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/client_side_validations-82ebd07a5fa1/lib/client_side_validations/action_view/form_helper.rb:28:in `form_for'
formtastic (1.2.4) lib/formtastic.rb:1943:in `block in semantic_form_for'
formtastic (1.2.4) lib/formtastic.rb:1908:in `with_custom_field_error_proc'
formtastic (1.2.4) lib/formtastic.rb:1942:in `semantic_form_for'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/view_helpers/form_helper.rb:8:in `active_admin_form_for'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:45:in `method_missing'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/new.rb:21:in `main_content'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:104:in `block (2 levels) in build_main_content_wrapper'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:68:in `block in build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:96:in `with_current_dom_context'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:67:in `build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:77:in `insert_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/html/element.rb:17:in `div'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:103:in `block in build_main_content_wrapper'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:68:in `block in build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:96:in `with_current_dom_context'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:67:in `build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:77:in `insert_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/html/element.rb:17:in `div'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:102:in `build_main_content_wrapper'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:86:in `block in build_page_content'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:68:in `block in build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:96:in `with_current_dom_context'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:67:in `build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:77:in `insert_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/html/element.rb:17:in `div'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:85:in `build_page_content'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:41:in `block (2 levels) in build_page'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:68:in `block in build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:96:in `with_current_dom_context'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:67:in `build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:77:in `insert_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/html/element.rb:17:in `div'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:38:in `block in build_page'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:96:in `with_current_dom_context'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:37:in `build_page'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/views/pages/base.rb:10:in `build'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:63:in `build_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:77:in `insert_tag'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/arbre/builder.rb:41:in `method_missing'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/view_helpers/renderer_helper.rb:21:in `render'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/app/views/active_admin/resource/new.html.arb:1:in `__home_ronaldocpontes__rvm_gems_ruby_______p____bundler_gems_active_admin__f_aa__f_____app_views_active_admin_resource_new_html_arb___106382401_82506730_553436515'
actionpack (3.0.9) lib/action_view/template.rb:135:in `block in render'
activesupport (3.0.9) lib/active_support/notifications.rb:54:in `instrument'
actionpack (3.0.9) lib/action_view/template.rb:127:in `render'
actionpack (3.0.9) lib/action_view/render/rendering.rb:59:in `block in _render_template'
activesupport (3.0.9) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.9) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.9) lib/action_view/render/rendering.rb:56:in `_render_template'
actionpack (3.0.9) lib/action_view/render/rendering.rb:26:in `render'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/view_helpers/renderer_helper.rb:23:in `render'
actionpack (3.0.9) lib/abstract_controller/rendering.rb:115:in `_render_template'
actionpack (3.0.9) lib/abstract_controller/rendering.rb:109:in `render_to_body'
actionpack (3.0.9) lib/action_controller/metal/renderers.rb:47:in `render_to_body'
actionpack (3.0.9) lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
actionpack (3.0.9) lib/abstract_controller/rendering.rb:102:in `render_to_string'
actionpack (3.0.9) lib/abstract_controller/rendering.rb:93:in `render'
actionpack (3.0.9) lib/action_controller/metal/rendering.rb:17:in `render'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.0.9) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/ronaldocpontes/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.0.9) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
activerecord (3.0.9) lib/active_record/railties/controller_runtime.rb:15:in `cleanup_view_runtime'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/resource_controller/actions.rb:34:in `block (2 levels) in new'
actionpack (3.0.9) lib/action_controller/metal/responder.rb:190:in `call'
actionpack (3.0.9) lib/action_controller/metal/responder.rb:190:in `default_render'
actionpack (3.0.9) lib/action_controller/metal/responder.rb:126:in `to_html'
responders (0.6.4) lib/responders/flash_responder.rb:93:in `to_html'
actionpack (3.0.9) lib/action_controller/metal/responder.rb:119:in `respond'
actionpack (3.0.9) lib/action_controller/metal/responder.rb:112:in `call'
actionpack (3.0.9) lib/action_controller/metal/mime_responds.rb:232:in `respond_with'
inherited_resources (1.2.2) lib/inherited_resources/actions.rb:19:in `new'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-0f8aa21f1225/lib/active_admin/resource_controller/actions.rb:32:in `new'
actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.9) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.9) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.9) lib/active_support/callbacks.rb:461:in `_run__23436291__process_action__630086844__callbacks'
activesupport (3.0.9) lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
activesupport (3.0.9) lib/active_support/callbacks.rb:94:in `run_callbacks'
actionpack (3.0.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.0.9) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.9) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.9) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.9) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.9) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.9) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.9) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.9) lib/action_controller/metal.rb:178:in `block in action'
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `block in call'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `block in recognize'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:117:in `optimized_each'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:493:in `call'
sass (3.1.7) lib/sass/plugin/rack.rb:54:in `call'
/home/ronaldocpontes/.rvm/gems/ruby-1.9.3-p448/bundler/gems/client_side_validations-82ebd07a5fa1/lib/client_side_validations/middleware.rb:18:in `call'
warden (1.0.5) lib/warden/manager.rb:35:in `block in call'
warden (1.0.5) lib/warden/manager.rb:34:in `catch'
warden (1.0.5) lib/warden/manager.rb:34:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.3) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.9) lib/active_record/query_cache.rb:32:in `block in call'
activerecord (3.0.9) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.9) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.9) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
activesupport (3.0.9) lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.3) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.9) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.3) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.3) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.2.3) lib/rack/lock.rb:11:in `call'
actionpack (3.0.9) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.9) lib/rails/application.rb:168:in `call'
railties (3.0.9) lib/rails/application.rb:77:in `method_missing'
railties (3.0.9) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.3) lib/rack/content_length.rb:13:in `call'
rack (1.2.3) lib/rack/handler/webrick.rb:52:in `service'
/home/ronaldocpontes/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/ronaldocpontes/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/ronaldocpontes/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

Routes error in production mode

The routes for role_changes worked in dev mode but not in prod. The "rake routes" output is identical

Here is the prod log :

Rendered layouts/_user_menu.rhtml (9.0ms)
Rendered pages/home.html.erb within layouts/application (33.5ms)
Completed 500 Internal Server Error in 52ms

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"profile/change_roles", :id=>[#<ChangeRole id: 1, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:26:48", updated_at: "2011-09-08 07:26:48">, #<ChangeRole id: 2, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:34:00", updated_at: "2011-09-08 07:34:00">]}):
18: <%= if current_user.change_role.empty?
19: link_to 'Become a special member', new_profile_change_role_path
20: else
21: link_to 'Membership requested', profile_change_role_path(current_user.change_role)
22: end %>
23: <% end %>
24:
app/views/layouts/_user_menu.rhtml:21:in _app_views_layouts__user_menu_rhtml___58434158_95111750__152735794' app/views/layouts/application.html.erb:25:in_app_views_layouts_application_html_erb__543511557_95933210_910669801'

Rendered layouts/_user_menu.rhtml (9.0ms)
Rendered pages/home.html.erb within layouts/application (33.5ms)
Completed 500 Internal Server Error in 52ms

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"profile/change_roles", :id=>[#<ChangeRole id: 1, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:26:48", updated_at: "2011-09-08 07:26:48">, #<ChangeRole id: 2, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:34:00", updated_at: "2011-09-08 07:34:00">]}):
18: <%= if current_user.change_role.empty?
19: link_to 'Become a special member', new_profile_change_role_path
20: else
21: link_to 'Membership requested', profile_change_role_path(current_user.change_role)
22: end %>
23: <% end %>
24:
app/views/layouts/_user_menu.rhtml:21:in _app_views_layouts__user_menu_rhtml___58434158_95111750__152735794' app/views/layouts/application.html.erb:25:in_app_views_layouts_application_html_erb__543511557_95933210_910669801'

Improve ajax callbacks on project updates

Now the update list is not refreshed after posting an update, so the latest update doesn't appear
Also there is no ajax loader, so you don't if it works after clicked "post update"

Routes error in production mode

The routes for role_changes worked in dev mode but not in prod. The "rake routes" output is identical

Here is the prod log :

Rendered layouts/_user_menu.rhtml (9.0ms)
Rendered pages/home.html.erb within layouts/application (33.5ms)
Completed 500 Internal Server Error in 52ms

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"profile/change_roles", :id=>[#<ChangeRole id: 1, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:26:48", updated_at: "2011-09-08 07:26:48">, #<ChangeRole id: 2, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:34:00", updated_at: "2011-09-08 07:34:00">]}):
18: <%= if current_user.change_role.empty?
19: link_to 'Become a special member', new_profile_change_role_path
20: else
21: link_to 'Membership requested', profile_change_role_path(current_user.change_role)
22: end %>
23: <% end %>
24:
app/views/layouts/_user_menu.rhtml:21:in _app_views_layouts__user_menu_rhtml___58434158_95111750__152735794' app/views/layouts/application.html.erb:25:in_app_views_layouts_application_html_erb__543511557_95933210_910669801'

Rendered layouts/_user_menu.rhtml (9.0ms)
Rendered pages/home.html.erb within layouts/application (33.5ms)
Completed 500 Internal Server Error in 52ms

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"profile/change_roles", :id=>[#<ChangeRole id: 1, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:26:48", updated_at: "2011-09-08 07:26:48">, #<ChangeRole id: 2, real_name: "Clement Renaud", state: "pending", description: "This is about me", more: "links blablan", phone: 2147483647, role: "artist", user_id: 8, created_at: "2011-09-08 07:34:00", updated_at: "2011-09-08 07:34:00">]}):
18: <%= if current_user.change_role.empty?
19: link_to 'Become a special member', new_profile_change_role_path
20: else
21: link_to 'Membership requested', profile_change_role_path(current_user.change_role)
22: end %>
23: <% end %>
24:
app/views/layouts/_user_menu.rhtml:21:in _app_views_layouts__user_menu_rhtml___58434158_95111750__152735794' app/views/layouts/application.html.erb:25:in_app_views_layouts_application_html_erb__543511557_95933210_910669801'

View page source
Url: http://jue.so/home

Role creation during install has to be fixed

Default role should be automatically created during the install.
"Member", "User"

also

In User.rb, setup_role function should use Role.name not Role.id

    def setup_role
      if self.role_ids.empty?
        self.role_ids = [1]
      end
    end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.