Giter VIP home page Giter VIP logo

refinerycms-portfolio's Introduction

Refinery Framework

This is a little project to see if we can write a tidy underlying framework.

refinerycms-portfolio's People

Contributors

3dd13 avatar alejoxml avatar benmoss avatar bricesanchez avatar djones avatar dougui avatar gabyshev avatar gwagener avatar hez avatar jandupal avatar ken-guru avatar kivanio avatar kovalevsky avatar levicole avatar luthfianto avatar matteofuzz avatar mirosr avatar modulozero avatar orthodox avatar pacifists avatar parndt avatar peterz avatar prokopsimek avatar redmar avatar robyurkowski avatar simi avatar tucano avatar ugisozols avatar unixcharles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

refinerycms-portfolio's Issues

Url generation error

After to install this extension (branch: 'master)', all works good, except tab users in backend.

I get this error:
ActionController::UrlGenerationError in Refinery::Authentication::Devise::Admin::Users#index

 Showing C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/refinery/admin/_menu_item.html.erb where line #1 raised:
No route matches {:action=>"index", :controller=>"refinery/refinery/portfolio/admin/galleries", :locale=>:es}
Trace of template inclusion: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/refinery/admin/_menu.html.erb, C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/layouts/refinery/admin.html.erb

Rails.root: C:/Users/Alejandro/Documents/desarrollo/blog

Application Trace | Framework Trace | Full Trace
actionpack (4.2.4) lib/action_dispatch/journey/formatter.rb:46:in `generate'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:729:in `generate'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:760:in `generate'
routing-filter (0.5.1) lib/routing_filter/adapters/rails.rb:30:in `block in generate_with_filtering'
refinerycms-i18n (3.0.1) lib/refinery/i18n-filter.rb:25:in `around_generate'
routing-filter (0.5.1) lib/routing_filter/filter.rb:11:in `run'
routing-filter (0.5.1) lib/routing_filter/chain.rb:15:in `run'
routing-filter (0.5.1) lib/routing_filter/adapters/rails.rb:29:in `generate_with_filtering'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:803:in `url_for'
actionpack (4.2.4) lib/action_dispatch/routing/url_for.rb:156:in `url_for'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/refinery/admin/_menu_item.html.erb:1:in `_____ails_nstaller__uby______lib_ruby_gems_______bundler_gems_refinerycms__a__f________core_app_views_refinery_admin__menu_item_html_erb__693893728_99951384'
actionview (4.2.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.4) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:143:in `render'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:436:in `block in collection_with_template'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:432:in `map'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:432:in `collection_with_template'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:324:in `render_collection'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:306:in `block in render'
actionview (4.2.4) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.4) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:305:in `render'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:21:in `render'
actionview (4.2.4) lib/action_view/helpers/rendering_helper.rb:32:in `render'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/refinery/admin/_menu.html.erb:2:in `_____ails_nstaller__uby______lib_ruby_gems_______bundler_gems_refinerycms__a__f________core_app_views_refinery_admin__menu_html_erb___471102482_88067640'
actionview (4.2.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.4) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:143:in `render'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
actionview (4.2.4) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.4) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.4) lib/action_view/renderer/partial_renderer.rb:309:in `render'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (4.2.4) lib/action_view/helpers/rendering_helper.rb:35:in `render'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/refinerycms-0a37f8090278/core/app/views/layouts/refinery/admin.html.erb:10:in `_____ails_nstaller__uby______lib_ruby_gems_______bundler_gems_refinerycms__a__f________core_app_views_layouts_refinery_admin_html_erb__400942905_89790984'
actionview (4.2.4) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.4) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.4) lib/action_view/template.rb:143:in `render'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (4.2.4) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (4.2.4) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (4.2.4) lib/action_view/rendering.rb:100:in `_render_template'
actionpack (4.2.4) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (4.2.4) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
actionpack (4.2.4) lib/action_controller/metal/renderers.rb:37:in `render_to_body'
actionpack (4.2.4) lib/abstract_controller/rendering.rb:25:in `render'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
activesupport (4.2.4) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:43:in `render'
actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action'
actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call'
activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call'
activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call'
activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.4) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call'
railties (4.2.4) lib/rails/engine.rb:518:in `call'
railties (4.2.4) lib/rails/railtie.rb:194:in `public_send'
railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing'
actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call'
dragonfly (1.0.12) lib/dragonfly/middleware.rb:14:in `call'
dragonfly (1.0.12) lib/dragonfly/middleware.rb:14:in `call'
warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
warden (1.2.3) lib/warden/manager.rb:34:in `catch'
warden (1.2.3) lib/warden/manager.rb:34:in `call'
rack (1.6.4) lib/rack/etag.rb:24:in `call'
rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'
rack (1.6.4) lib/rack/head.rb:13:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/cookies.rb:560:in `call'
activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
activerecord (4.2.4) lib/active_record/migration.rb:377:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
web-console (2.2.1) lib/web_console/middleware.rb:31:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'
actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
dragonfly (1.0.12) lib/dragonfly/cookie_monster.rb:9:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
railties (4.2.4) lib/rails/engine.rb:518:in `call'
railties (4.2.4) lib/rails/application.rb:165:in `call'
rack (1.6.4) lib/rack/lock.rb:17:in `call'
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
Request

Parameters:

{"locale"=>:es}
Toggle session dump
Toggle env dump
Response

Headers:

None

Please help, thanks .

Error while adding image

Fresh installed refinery 2.0.4.
http://localhost:3000/refinery/portfolio/galleries/1/items/new

Got:

undefined method `to_i' for #<Refinery::Portfolio::Gallery:0x007f98201eb2d8>
Rails.root: /home/serg/tmp/refinery_gallery
Application Trace | Framework Trace | Full Trace

activemodel (3.2.9) lib/active_model/attribute_methods.rb:407:in `method_missing'
activerecord (3.2.9) lib/active_record/attribute_methods.rb:149:in `method_missing'
activerecord (3.2.9) lib/active_record/connection_adapters/column.rb:178:in `value_to_integer'
activerecord (3.2.9) lib/active_record/connection_adapters/column.rb:78:in `type_cast'
activerecord (3.2.9) lib/active_record/attribute_methods/dirty.rb:86:in `_field_changed?'
activerecord (3.2.9) lib/active_record/attribute_methods/dirty.rb:63:in `write_attribute'
globalize3 (0.2.0) lib/globalize/active_record/instance_methods.rb:54:in `write_attribute'
activerecord (3.2.9) lib/active_record/attribute_methods/write.rb:14:in `gallery_id='
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes'
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in `each'
activerecord (3.2.9) lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
(eval):3:in `block in assign_attributes'
globalize3 (0.2.0) lib/globalize/active_record/instance_methods.rb:170:in `with_given_locale'
(eval):3:in `assign_attributes'
activerecord (3.2.9) lib/active_record/base.rb:497:in `initialize'
/home/serg/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/refinerycms-portfolio-ef456e627ef2/app/controllers/refinery/portfolio/admin/items_controller.rb:26:in `new'
/home/serg/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/refinerycms-portfolio-ef456e627ef2/app/controllers/refinery/portfolio/admin/items_controller.rb:26:in `new'
actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.9) lib/active_support/callbacks.rb:491:in `_run__4454353118470415568__process_action__2560412915787678962__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
railties (3.2.9) lib/rails/engine.rb:479:in `call'
railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
warden (1.1.1) lib/warden/manager.rb:35:in `block in call'
warden (1.1.1) lib/warden/manager.rb:34:in `catch'
warden (1.1.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
dragonfly (0.9.12) lib/dragonfly/cookie_monster.rb:9:in `call'
activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__756115721357162618__call__1666996115166830767__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
dragonfly (0.9.12) lib/dragonfly/middleware.rb:13:in `call'
dragonfly (0.9.12) lib/dragonfly/middleware.rb:13:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
railties (3.2.9) lib/rails/engine.rb:479:in `call'
railties (3.2.9) lib/rails/application.rb:223:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
/home/serg/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/serg/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/serg/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

rake refinery:portfolio:install doesn't work.

steven@steven-laptop ~/livingsky/presence/equinox-home-innovations $ rake refinery:portfolio:install --trace
(in /home/steven/livingsky/presence/equinox-home-innovations)
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:4: warning: already initialized constant MAJOR
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:5: warning: already initialized constant MINOR
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:6: warning: already initialized constant TINY
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:7: warning: already initialized constant BUILD
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:9: warning: already initialized constant STRING
rake aborted!
Don't know how to build task 'refinery:portfolio:install'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:1728:in []' /home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2050:ininvoke_task'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/rake-0.8.7/bin/rake:31
/home/steven/.rvm/gems/ruby-1.8.7-p174/bin/rake:24:in `load'
/home/steven/.rvm/gems/ruby-1.8.7-p174/bin/rake:24

do only give a empty link nothing else

after installing the plugin it create a empty normal page nothing else. No error messages or anything.

I have the refinery version 0.9.7.5 installed and then tried to install the portfolio plugin version 0.9.7.

Rails 3.2 - branch rails 3-1 assets:precompile

Installing in a refinerycms 2.0.1:

gem 'refinerycms-portfolio', :git => 'git://github.com/resolve/refinerycms-portfolio.git', :branch => 'rails-3-1'

All seems ok in development except this:

rake assets:precompile

rake aborted!
couldn't find file 'skitter'
(in ........ app/assets/javascripts/refinery/portfolio/frontend.js:1)

Already Initialized Version Constants

/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:4: warning: already initialized constant MAJOR
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:5: warning: already initialized constant MINOR
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:6: warning: already initialized constant TINY
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:7: warning: already initialized constant BUILD
/home/steven/.rvm/gems/ruby-1.8.7-p174/gems/refinerycms-portfolio-0.9.6/lib/portfolio.rb:9: warning: already initialized constant STRING

Installed as gem with Refinery also installed as gem. Tried to fix but couldn't figure out how. Might need to use instance constants instead.

Portfolio Permissions when running as Gem

When running this as a gem, it seems the permissions are a bit broken. The plugin still works but it's not registering itself properly. Need to somehow get it into the configuration's default_plugin_paths.

Cannot upload more than 18 images on a single portfolio

Hi, I ve got the following error (that I really don't know how I can manage) when I tried to upload more than 18 photos (via the admin area) on a single portfolio.

I got the same problem on my development and my production environnement.
I am using the master branch of refinerycms-portfolio and refinery 1.0.3

NotImplementedError in Admin/images#insert

Showing /Users/ben/.rvm/gems/ruby-1.9.2-p290/gems/refinerycms-images-1.0.3/app/views/admin/images/_existing_image.html.erb where line #32 raised:

NotImplementedError

Extracted source (around line #32):

29:     <%= t('no_results', :scope => 'shared.admin.search') %>
30: <% end %>
31:   </div>
32: 
33:   <%= images_paginator @images, from_dialog? %>
34: 
35:   <% unless @app_dialog or @images.empty? %>

Trace of template inclusion: /Users/ben/.rvm/gems/ruby-1.9.2-p290/gems/refinerycms-images-1.0.3/app/views/admin/images/insert.html.erb

Rails.root: /Users/ben/rails_projects/portfolio_project

Since then, I can upload more image through the image section in the admin area, but I cannot upload/select any photos through the library of the portfolio page.

I would be really pleased for any help. Thank you!

Generate refinerycms:portfolio says 'no such file to load -- refinery'

Installing in Refinery 2.0.1, Mac OSX Lion (the copywriting engine is installed and working here.)

Gemfile:
gem 'refinerycms-portfolio', :branch => 'rails-3-1'

bundle update:
Using refinerycms-pages (2.0.1)
Using refinerycms-resources (2.0.1)
Using refinerycms (2.0.1)
Using refinerycms-copywriting (2.0.0)
Using refinerycms-portfolio (0.9.10)

rails generate refinerycms:portfolio

/Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require': no such file to load -- refinery (LoadError)
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/refinerycms-portfolio-0.9.10/lib/refinerycms-portfolio.rb:1:in `<top (required)>'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
    from /Users/anita/cscms/config/application.rb:9:in `<top (required)>'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/commands.rb:24:in `require'
    from /Users/anita/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.2.1/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Unable to set the parent_id

There is no UI for setting the parent_id in _form or the javascript. As a result, all newly created PortfolioEntries have parent_id = nil, and no pictures are associated. I am looking for a parent pull-down menu similar to the one found under the Pages plugin.

portfolio.css

Could anyone tell me how you would go about overriding the portfolio.css file. Thank you.

Cant not install

After
bundle install
rails generate refinerycms_portfolio
then I got error
"Could not find generator refinerycms_portfolio"

Thank You

Rake task not available on fresh install

I did a fresh install of refinerycms (0.9.8.5) and included the refinerycms-portfolio gem in my bundle as it says. It installs successfully with 'bundle install' and then when I run the rake task, it just gives me

Don't know how to build task 'refinery:portfolio:install'

I take this to mean that it can't access the rake task from inside the gem. I'm not smart enough to figure out why and try to fix it myself!

Engines being created as pages

I've been attempting to create various engines as specified in the rickrockstar examples, this worked last night but no longer works and all engines are now being created as pages.

Can you please advise as to how I can resolve this?

Adding a second image to a gallery causes an error

I created two galleries both with one image and the site works fine, when I add a second image to a gallery it fails displaying the gallery on the site with the following error:

error1

If I remove an image from the same gallery it works again.

I'm using Ruby 2.1.3
Rails 4.2.4
RefineryCMS 3.0.0

database error on portfolio install

My installation of portfolio plugin always ends with "Mysql::Error: Duplicate entry '1-Portfolio' for key 'index_unique_user_plugins': INSERT INTO user_plugins (name, position, user_id) VALUES('Portfolio', 9, 1)"

This is refinery 0.9.7.10 and portfolio 0.9.7
See more detail below.

$ rake refinery:portfolio:install
(in /home/epipheus/CodeWarehouse/worldtasc)

Copying files...

Copied to /home/epipheus/CodeWarehouse/worldtasc/public/stylesheets/portfolio.css
Copied to /home/epipheus/CodeWarehouse/worldtasc/public/javascripts/portfolio.js

Copied all files.

Generating migration...
exists db/migrate
create db/migrate/20100802184525_create_structure_for_portfolio.rb

Now, run these tasks:
rake db:migrate
rake images:regenerate

We hope you enjoy using our portfolio plugin!

$ rake db:migrate
(in /home/epipheus/CodeWarehouse/worldtasc)
== CreateStructureForPortfolio: migrating ====================================
-- create_table(:images_portfolio_entries, {:force=>true, :id=>false})
-> 0.1078s
-- add_index(:images_portfolio_entries, [:image_id, :portfolio_entry_id], {:unique=>false, :name=>"composite_key_index"})
-> 0.2583s
-- create_table(:portfolio_entries, {:force=>true})
-> 0.1156s
-- add_index(:portfolio_entries, :id)
-> 0.2486s
-- add_index(:portfolio_entries, :parent_id)
-> 0.2404s
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Duplicate entry '1-Portfolio' for key 'index_unique_user_plugins': INSERT INTO user_plugins (name, position, user_id) VALUES('Portfolio', 9, 1)

(See full trace by running task with --trace)

Portfolio re-ordering never completes

On engineyard server, production log shows "ActiveRecord::ActiveRecordError (Impossible move, target node cannot be inside moved tree.):" Re-ordering is successful, but spinner shows continuously after clicking "Done re-ordering". Need to refresh page to get out of this state.

portfolio plugin failed on heroku

Hi guys,

I have a problem with portfolio plugin.
It works pefectly in my local machine but not in heroku.

Normally, on the left side should be an original image size and on
another side should be a smaller size of images-thumbnails, it seems
to work like that in my local machine.However, it didn't work on
heroku, it shows only the original size of image on both side-left and
right.

I have checked with Amazon S3 bucket, it seems that there is only one
image in that bucket instead of several images with different sizes as
usual.

Does anyone know how to fix this problem?

Thank you

PS.

Generator error

I created a new refinery project and I'm getting this error when I try to generate the portfolio:
Could not find generator refinerycms_portfolio.

I have tried with: "refinery_portfolio" and "portfolio" with same result.

I'm using:
rails 3.0.4
refinerycms 0.9.9
refinerycms-portfolio 0.9.9

This issue is similar to #28 but the solutions proposed for it didn't work for me.

Bundle install failed

I am getting the following error while bundle installing the gem
Resolving dependencies...

Bundler could not find compatible versions for gem "refinerycms-core":
In snapshot (Gemfile.lock):
refinerycms-core (2.1.0)

In my gemfile i added the following line
gem 'refinerycms-portfolio', :git => 'git://github.com/refinery/refinerycms-portfolio.git', branch: 'master'

Please help me to get out of this issue.

"No items yet" translation missing for admin top-level images list

If no top level images have been added, viewing the list displays "i18n: No Items Yet". The translations files are missing refinery.admin.items.index.no_items_yet. Also, I think there are some unused translations lying around in there. Possibly some file structures changed and the translation paths weren't updated.

Portfolio route failing

ActionController::RoutingError in Portfolio#show

Showing vendor/plugins/refinerycms-portfolio/app/views/portfolio/show.html.erb where line #31 raised:

portfolio_project_url failed to generate from {:action=>"show", :controller=>"portfolio", :id=>#<PortfolioEntry id: 1, title: "first image", body: "

Lorem ipsum dolor sit amet, consectetur adipisic...", position: nil, parent_id: nil, created_at: "2010-05-29 16:10:13", updated_at: "2010-05-29 16:10:13">}, expected: {:action=>"show", :controller=>"portfolio"}, diff: {:id=>#<PortfolioEntry id: 1, title: "first image", body: "

Lorem ipsum dolor sit amet, consectetur adipisic...", position: nil, parent_id: nil, created_at: "2010-05-29 16:10:13", updated_at: "2010-05-29 16:10:13">}
Extracted source (around line #31):

28: $(document).ready(function(){
29: $("ul#portfolio_images li a.pale img").fadeTo(0, 0.3);
30:
31: $('#portfolio_entry_to_param').change(function() {
32: window.location = "<%= RefinerySetting.find_or_set(:multi_level_portfolio, true) ? portfolio_project_url(@master_entry, nil) : portfolio_project_url(@master_entry) %>" + this.value;
33: });
34:
RAILS_ROOT: /Users/heathertanner/Sites/fugu.heroku.com

Application Trace | Framework Trace | Full Trace
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:427:in raise_named_route_error' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:388:ingenerate'
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/url_rewriter.rb:208:in rewrite_path' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/url_rewriter.rb:187:inrewrite_url'
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/url_rewriter.rb:165:in rewrite' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:625:inurl_for'
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_view/helpers/url_helper.rb:85:in send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_view/helpers/url_helper.rb:85:inurl_for'
(eval):21:in `portfolio_project_url'
Request

Parameters:

{"id"=>"first-image"}
Show session dump

Response

Headers:

{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}

Unable to associate images to portfolio page

Refinery version 0.9.6.4
Portfolio plugin version 0.9.2

Steps to reproduce: Install clean refinery demo app, edit database.yml, rake db:setup, install portfolio plugin (both script/install and gem methods tested). Start server, log in to app (create admin user first), create new portfolio page, create sub-portfolio page, click "Add image" and use thickbox image selector to choose image (once a new one's been uploaded). Click "Save" and no result.

Observing the server logs shows nothing happening on the server side when "Save" is clicked - investigating the source reveals why: there is no

element wrapping the image chooser.

Migrations are fixed-date

If you are installing portfolio into an existing project, the migrations that it creates are not renamed to have a current datestamp. This can cause serious havok!.

It would be better to use rails generators in place of rake refinery:portfolio:install - they have built-in support for creating migrations with the correct names.

Error on rake db:migrate

(From IRC channel)

The error occurred while evaluating nil.any?
/home/tony/Projects/refinery/db/seeds/portfolio.rb:5:in block in <top (required)>' /home/tony/Projects/refinery/db/seeds/portfolio.rb:1:ineach'
/home/tony/Projects/refinery/db/seeds/portfolio.rb:1:in `<top (required)>'

Fixed by removed .any? from the end of that line. Does that break anything, or what was the purpose of the .any? in the first place as the methods it's attached to returns nil.

Feature Request: Titles and descriptions

It's probably difficult to implement with the current system of dumping images into a content area, but it would be great if each image could have a title (also used for alt text), and a longer html description.

If this is too big of a change, I might just start a new project, since I'd also like to use colorbox for displaying images.

Error in show template

When running with multilevel portfolios, line #40 of show.html.erb has a bug. As it stands now if a portfolio item is created with a child, it gives this error

No route matches {:controller=>"portfolio", :portfolio_id=>"", :action=>"show", :id=>1}

Perhaps it should read

var portfolio_entry_url = "<%= portfolio_project_url(@master_entry, @portfolio_entry) if ::Refinery::Portfolio.multi_level? %>";

Plugin doesn't appear to work

I've installed latest version as a plugin and followed the instructions in the readme. The tables seem to be created in the db ok, as does the link to the portfolio page (on the public web site). But nothing else appears.

I've got the latest version plugin from the master branch and am running version 0.9.7.5 of Refinery.

Any clues?

seo_meta gem for galleries?

Not sure if this is the correct place as its not an issue with this engine more a question but im trying to use the seo_meta gem to this engine.

Have added this to the gallery model.

require 'seo_meta'
is_seo_meta if self.table_exists?

Adding this to the model works fine as it saves the data to the seo_meta table with the correct seo_meta_type of
Refinery::Portfolio::Gallery

The issue is the meta tags and custom title do not appear when selecting a gallery. Any ideas how to get them to appear?

Image and "there is no image" both displayed when editing an image

In 2-0-stable, when you edit an image it displays the image followed by the message "There is currently no image selected, please click here to add one." followed by the link to remove the image.

Steps to reproduce:

  • create a gallery
  • add an image to it via the "Add an image" action
  • view the gallery's images via the "X images" link
  • click the "Edit this image" button

Insert portfolio into page

I'm running refinerycms 2.0.8 and portfolio 2.0-stable. I'd like to add my portfolios into pages. Is there a way to do this?

Adding image not working

Hi,

It appears that adding an image is not working with the latest version of the portolio and the latest version of refinery (i18n branch). Furthermore I had to include plugin.url = '/refinery/portfolio'
in the init.rb to make it work in the first place.
Ygor

Can't add image to gallery

After clicking "Add an image" to newly created gallery i got message:
Sorry, there was a problem...
The page you requested was not found.

Both versions: stable 2.0.4 and dev from github, Rails 3.2.3, Ruby 1.9.3

Can't mass-assign protected attributes error

While trying out the plugin I've got that strange error while trying to create a new gallery:

Can't mass-assign protected attributes: locale

It came out of nowhere (some HTML line in the form view), but I can't find which model need that attribute to be accessible. I tried to modify the Gallery and Item models to no avail.

Can't add image to gallery by clicking the "Add an image to this gallery" button

Hi there,

When I click the "Add an image to this gallery" next to a gallery in the admin galleries#index page I'm redirected to the new image form but with no gallery selected in the dropdown menu. Also the gallery I created could not be selected in that dropdown menu.

If I click create the image will then be properly created, but as a top-level image, not inside the gallery I wanted.

Creating images through the "Add an image button" on galleries#index works perfectly though, provided I selected the proper gallery in the dropdown menu (and this time the gallery I created was selectable)

Cheers !

ActiveRecord::RecordNotFound in Refinery::Portfolio::GalleriesController#show

Hello,

I have a strange issue with refinerycms-portfolio, after creating a new gallery I can't access it in the site, seems like active record is not finding the slug of the gallery:

Couldn't find Refinery::Portfolio::Gallery with id=new-gallery

But if I manually edit the URL in my browser, using an ID instead of a slug, the page is found.
Example: localhost:3000/portfolio/galleries/1 instead of localhost:3000/portfolio/galleries/new-gallery

Does anyone has an idea on how to fix this issue ?
Is it a missing Gem ?
I've tried to edit the portfolio/index page to edit links, but i couldnt manage to override this view.

Thanks

No route to front office

Hello,

I have installed the extension has described on the home and can joyfully play with the portfolio in the admin :)

However, I can not acces the gallery previews on the front :

Routing Error

No route matches {:controller=>"refinery/refinery/pages", :action=>"show", :path=>["about"], :id=>nil}
Try running rake routes for more information on available routes.

How should I configure the routes ?

Cheers
Manu

Images Not Displaying in Portfolio

Hey,

Thanks for the updates lately, much appreciated! Glad to see the portfolio plugin running on the lastest Refinery.

I'm running into a new error now (images correctly add now, hooray), that no matter what images are attached to the portfolio I get:

We haven't entered anything in for this project yet.

I've double checked to make sure all the associations are created on image add (they are), but for some reason it keeps rescuing to the empty view.

Any suggestions would be greatly appreciated,
Thanks.

Edit: Running 0.9.7.1 of Refinery and the latest portfolio plugin (installed via plugin, not gem).

20090917224823_create_portfolio_structure.rb fail at line 29

The migration fail to run, because it seem that it can't update the image_thumbnails settings.

Loading development environment (Rails 2.3.5)
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement

RefinerySetting[:image_thumbnails] = RefinerySetting.find_or_set(:image_thumbnails, {}).merge!({:portfolio_thumb => 'c96x96', :portfolio => '600x512'})
TypeError: can't modify frozen hash
from (irb):1:in `merge!'
from (irb):1

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.