resolve / refinerycms
- Source
- Commits
- Network (50)
- Issues (4)
- Wiki (1)
- Graphs
-
Branch:
master
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
A beautiful open source Ruby on Rails content manager for small business. Easy to extend, easy to use, lightweight and wrapped in a super slick UI. — Read more
-
Hi parndt, I hava a macbook pro now (with snow leopard) and am trying the latest version again. For some weird reason if I upload an image, the only image that appears on the server is the original one, none of the resized ones are created. Do you know what might be going on ? Is this perhaps some issue with rmagick ?
Thanks,
Ygor
Comments
-
This line is giving me an error when I click on the user tab. Version 0.9.5.23
:title => "Remove this user forever" if user.ui_deletable?(current_user) %>The error has to do with the superuser:
ActionView::TemplateError (undefined method `superuser' for #<User:0x7f766dc31190>) on line #19 of /usr/lib/ruby/gems/1.8/gems/refinerycms-0.9.5.23/vendor/plugins/authentication/app/views/admin/
16: <%= link_to refinery_icon_tag('delete.png'), admin_user_path(user),
17: :confirm => "Are you sure you want to delete '#{user.login}'?",
18: :class => "cancel", :method => :delete,
19: :title => "Remove this user forever" if user.ui_deletable?(current_user) %>
20: <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_user_path(user),
21: :title => 'Edit this user' %>
22: <%= mail_to user.email, refinery_icon_tag('email_go.png'), :title => 'Email this user' %>refinerycms (0.9.5.23) vendor/plugins/authentication/app/models/user.rb:125:in `ui_deletable?'I replaced it with the following from an earlier version and it is now working again.
:title => "Remove this user forever" if @users.size > 1 and user.id != current_user.id %>Comments
BoomerBrian
Sat Dec 12 11:03:44 -0800 2009
| link
My bad. Looks like there were changes between versions. I will run the migrate to add the column to the DB.
-
3 comments Created about 1 month ago by YgorFixed Pending ConfirmationxSlim_scrooge not available in windowsWindowsxIt appears that the latest version of refinery requires the presence of the slim_scrooge gem. But this gem is not available on Windows. Is there a solution for this?
Comments
Hi Ygor, I've just put a condition saying to only load the gem unless you're on Windows. See the commit here: http://github.com/resolve/refinerycms/commit/72f77da715d6d2e7b17afc8edb6a4524c7f8fcee
Let me know if this solves the issue. (Are you running refinery as a gem or from git?)
Hi Parndt,
That's seems to fix the problem. Many thanks! (I'm running it from git)
Ygor
-
I noticed you committed a change which added back some whitespace on an empty line that I stripped out in my changeset.
Trailing whitespace adds a pain point to merging. Personally, I strip it all out when saving. Can we standardize and do some housekeeping so it's nicer to work with?
Comments
+1. There's also some files that mix tabs and spaces, e.g. http://github.com/resolve/refinerycms/blob/master/vendor/plugins/pages/app/models/page.rb
This could be solved by running a script, and one would have to chose between tabs or spaces. (I don't know of a single Ruby project that use tabs, so it should be an easy choice :)
I added a rake task and ran it on the project to clean up the files. It's in my master branch:
I've merged in your changes, nice one! This should resolve the issue.
-
these are just polish, but:
when editing side body or another section, save and continue editing returns you to the body tab, and I think it should keep you on the tab you're working on.
when creating a new page and then pressing Save & Continue editing, it takes you to creating another new page instead of editing the new page you just created.
Comments
This is a very good point. The next version of this command will actually execute the save in the background and display the message up the top asynchronously through javascript. So I'll comment back on this issue when that's ready to go. Thanks!
-
after inserting a link into a page using the editor, then clicking add link gives the javascript error:
Error: possible_anchor_tag.match(/href="([^"]*)"/) is null Source File: http://localhost:3000/javascripts/wymeditor/jquery.refinery.wymeditor.js?1258586292 Line: 1229This may be the fault of the version of wymeditor bundled with refinery, but should still be addressed.
Comments
-
Hi
Editing a page if you insert a link or image after close the dialog the Cancel link of the page form not work anymore.Seems to be binded to tb_remove after the dialog, removing the class "close_dialog" fix the problem. But the js code could have some others side effects.
h
Comments
Fixed with commit http://github.com/resolve/refinerycms/commit/1be3ff4b3c35f8ad06f296d5a842b5fa8f0b2bce - thanks hernan!
-
Hi,
Just pulled the latest version (8a34d1b) for a new
project. But when I do rake db:schema:load after rake db:create it blows up:rake db:schema:load --trace (in /Users/joe/projects/newproject) ** Invoke db:schema:load (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! Mysql::Error: Table 'newproject_development.news_items' doesn't exist: SHOW FIELDS FROM `news_items` /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:319:in `execute' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:465:in `columns' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1271:in `columns' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/friendly_id-2.2.0/lib/friendly_id.rb:65:in `has_friendly_id' /Users/joe/projects/newproject/vendor/plugins/news/app/models/news_item.rb:5 /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `load_file' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:379:in `load_file' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:259:in `require_or_load' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:425:in `load_missing_constant' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:437:in `load_missing_constant' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:437:in `load_missing_constant' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:96:in `const_missing' /Users/joe/projects/newproject/vendor/plugins/news/init.rb:7:in `evaluate_init_rb' /Users/joe/projects/newproject/vendor/plugins/refinery/lib/refinery/plugin.rb:5:in `register' /Users/joe/projects/newproject/vendor/plugins/news/init.rb:1:in `evaluate_init_rb' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:158:in `evaluate_init_rb' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:154:in `evaluate_init_rb' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:48:in `load' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/loader.rb:38:in `load_plugins' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/loader.rb:37:in `each' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/loader.rb:37:in `load_plugins' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:369:in `load_plugins' /Users/joe/projects/newproject/vendor/plugins/refinery/lib/refinery/initializer.rb:24:in `load_plugins' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:165:in `process' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `send' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in `run' /Users/joe/projects/newproject/vendor/plugins/refinery/lib/refinery/initializer.rb:19:in `run' /Users/joe/projects/newproject/config/environment.rb:13 /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4 /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/1.8/monitor.rb:242:in `synchronize' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/1.8/monitor.rb:242:in `synchronize' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /opt/ruby-enterprise-1.8.7-20090928/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise-1.8.7-20090928/bin/rake:19:in `load' /opt/ruby-enterprise-1.8.7-20090928/bin/rake:19Comments
joerichsen
Sat Oct 24 04:25:44 -0700 2009
| link
Hi,
I just used git bisect to locate the commit where the error started occurring. Apparently it is 84ff8b8
?Fixed with commit http://github.com/resolve/refinerycms/commit/f24afd7c209cfa817a2aaf1a76bb900f5b573cc1 can you confirm?
joerichsen
Thu Oct 29 00:51:32 -0700 2009
| link
Hi,
Excellent.
rake db:createruns just fine
rake db:schema:loadfailed with
rake aborted! can't activate , already activated friendly_id-2.2.0 (See full trace by running task with --trace)I uninstalled the friendly_id gem and installed again (this time version 2.2.2) and after
that
rake db:schema:load rake db:seedcompleted with no errors :-)
Thx a lot.
-
When Page Parts is disabled, on edit page a js error is raised when try to connect the events to the missing Page Parts html controls.
Comments
Thanks, I've fixed this in the latest release which will be out soon.
-
use sqlite3
config/database:
login: &login
adapter: sqlite3 pool: 5 timeout: 5000development:
database: db/refine_dev <<: *loginrake db:migrate ok
rake db:schema:load ok
rake db:seed error:
└──>rake db:seed --trace
(in /Users/xiaodeshi/projects/refinerycms) rake aborted!
Don't know how to build task 'db:seed'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1704:in[]' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2026:ininvoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:ineach' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:intop_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:inrun' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:instandard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:inrun' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 /usr/local/bin/rake:19:in `load' /usr/local/bin/rake:19now: ./script/server
view public site: error
NoMethodError in Pages#homeShowing vendor/plugins/refinery/app/views/shared/_submenu.html.erb where line #1 raised:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.rootExtracted source (around line #1):
1: <% children = @page.root.children %>
2:- >
3: <%= render :partial => "/shared/submenu_branch", :collection => children %>
4:so no idea.please test more.thanks.
Comments
If you read your debug message you will notice the crucial factor here is that the db:seed command actually failed. This command requires rails 2.3.4 to be installed.. do you have that version installed? Once seeded, the submenu error will go away because there will be pages to display.
thanks hits,my environment is rails 2.3.2,but can you give alternate way to use this in rails 2.3.2?
The environment required is specified in config/environment.rb but yes putting it in the README is a good idea.
-
application_helper in app prevents engine helper from loading
5 comments Created 2 months ago by avitThis might be a rails bug?
When a file is created in app/helpers/application_helper.rb, then Refinery complains with an undefined method "refinery_icon_tag".
Removing the helper file in app makes it work again.
Not sure if this is the expected behaviour from Rails, or in fact a bug. (One workaround might be to rename the module to e.g. layout_helper and load it with helper :layout in the controller.)
Comments
Refinery already has an application_helper.rb file ( see http://github.com/resolve/refinerycms/blob/master/vendor/plugins/refinery/app/helpers/application_helper.rb ) so you are effectively overriding this helper and not allowing it to load.
This is expected behaviour in Rails and Refinery however I will be committing a change soon which by default ships with an app/helpers/application_helper.rb file that inherits from the refinery one so that you can override/extend it at will. I'll post back here when that is live with a link to the commit.
Cheers,
PhilMakes sense, thanks. I'm not very familiar with rails engines so I expected the same behaviour as plain ruby; that is, re-open the module and add more methods to it.
I just committed a change to Refinery as promised.
Here it is:
http://github.com/resolve/refinerycms/commit/dacffa748f3267767b5fa19607b45f80a1528edb -
Hi,
How can i hide the page (not making it a draft, but just not showing it in the menu) from user interface of refinery?
Comments
This is not the place to ask questions about functionality. See here: http://groups.google.com/group/refinery-cms
The functionality you require is under "Hide/Show Advanced Options" when editing a page.. look down the bottom under "Show in menu"
-
I don't know how to do this without database frontend :)
Comments
railsmaniac
Sun Oct 11 16:29:38 -0700 2009
| link
You mean that some pages can't be removed?
Yep, it seems some of them are hardcoded and can't be removed.
No, the OP (nemp) means that they can't remove a page part or "page section" (e.g. a "tab" when editing a page).
This is a valid issue and something we'll be fixing in a later release though I can't promise a timeframe. If you would like to patch it we'd welcome that.
I've received a patch from hernan and will be integrating this soon so don't worry about working on anything.
I've just committed a major change which solves this issue. Please take notice that there are files changed in the app directory and there is new CSS and new Javascript. Probably best to re-clone!
Here's the commit:
http://github.com/resolve/refinerycms/commit/dacffa748f3267767b5fa19607b45f80a1528edb -
When I click to edit a page I can only see a text box, no editor. If firebug is enabled all seems to work ok.
Archlinux
Firefox 3.5.3
ruby 1.8.7
Rails 2.3.4Comments
railsmaniac
Sun Oct 11 16:30:19 -0700 2009
| link
Safari works fine.
Maybe someone used console.log() ? %)
Seems that something else was going wrong when it was detecting the base paths for the editor. This commit solves the issue for me, please test and reply:
http://github.com/resolve/refinerycms/commit/d01e3d398e401f9c413a5d4e914a94c89ec0794c
-
Hi -- when running rake tasks, people will initially get:
undefined method `has_friendly_id' for NewsItem(Table doesn't exist):Class
unless they have the friendly_id gem. Since other gems (like aasm) are config.gem'd it would be nice to have friendly_id as well, to prevent people like me from having to google search.
Comments
└──> $ rake db:schema:load
(in /Users/xiaodeshi/projects/refinerycms) rake aborted!
undefined method `has_friendly_id' for NewsItem(Table doesn't exist):Class(See full trace by running task with --trace)
I'm finding a way to work around this.. will report back shortly.
Try pulling the latest sourcecode (refinerycms >= 0.9.2) and tell me if the issue is resolved for you? Now you should be able to use rake gems:install and it should work.
-
Showing a newly created page on a fresh refinery install fails
3 comments Created 3 months ago by joerichsenThe error:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.public_filename
Extracted source (around line #6):3:
4:<%= page_title %>
5: <%= @page[:body] %>
6: <%= image_fu Image.first %>
7:
8:
9: <%= @page[:side_body] %>Image.first probably returns nil as I don't have any images defined and that probably causes the error.
Comments
Thanks, Jørgen, I've updated the code and removed this call.
joerichsen
Wed Sep 23 22:31:57 -0700 2009
| link
Excellent, works like a charm now :-) Keep up the good work.
-
This happen when updating the site and you have preview images which have been uploaded but don't have the :grid thumbnail. Will also be an issue if users change the attachment_fu thumbnail settings. Need a fall back if there is no matching thumbnail.
Thought: You may want to have a setting where the user could specify a list of thumbnails to attempt when displaying the grid (:grid, :preview) to support older uploaded images. Maybe show a "preview not available" image if none is found.
Getting the following error:
NoMethodError in Admin/images#index Showing vendor/plugins/images/app/views/admin/images/_grid_view.html.erb where line #8 raised: You have a nil object when you didn't expect it! The error occurred while evaluating nil.public_filename Extracted source (around line #8): 5: <%# debug image.thumbnails %> 6: <%# break %> 7:
- <%= "class='row-end'" if (@images.index(image)+1) % 4 == 0 %>> 8: <%= image_fu image, :grid, :title => image.title %> 9: 10: <%= link_to image_tag('refinery/icons/application_edit.png'), edit_admin_image_path(image), 11: :title => 'Edit this image' %> Trace of template inclusion: vendor/plugins/images/app/views/admin/images/index.html.erb RAILS_ROOT: /Users/ryanwood/code/4thpres Application Trace | Framework Trace | Full Trace /Users/ryanwood/code/4thpres/vendor/plugins/refinery/app/helpers/application_helper.rb:47:in `image_fu'
Comments
Please ignore the debug code in lines 5 & 6. Just testing it.
Just run "rake images:regenerate" on your computer and the new ones will be added.
Very nice. Worked perfectly. It would be great to add that into the error message if the thumbnails can't be found. I had no idea that was there.
That's a good idea.. we take it for granted because we developed it in-house I guess! It can also be run on a production machine but make sure you specify RAILS_ENV=production
Error handling for that would likely go on the "image_fu" method in application_helper.rb do you think?
-
Migrations do not apply cleanly on commit d525f0cf496932c82e048b73642a3aea1cf05e26
3 comments Created 3 months ago by ryanwoodAfter updating my local repo to the last version (d525f0c) running
rake db:migratethrows errors.The first error was this:
~/code/refinery[upstream]% rake db:migrate (in /Users/ryanwood/code/refinery) == ResaveRefinerySettingsThroughSerializer: migrating ======================== == ResaveRefinerySettingsThroughSerializer: migrated (0.0069s) =============== == MigratePluginsToArrayFormatOnUsers: migrating ============================= rake aborted! An error has occurred, this and all later migrations canceled: SQLite3::SQLException: no such table: user_plugins: SELECT * FROM "user_plugins" WHERE ("user_plugins".user_id = 2) ORDER BY position ASCThat because you are using the User object that now has a reference to the user_plugins table which has not yet been created. So I applied the second two migrations manually. That helped but not I have other errors.
I noticed that the down steps are not really undoing the migration is a couple of cases so running a db:migrate:redo is failing as well.
I'll walk through it manually to get the db in order, but thought you may want to rework the migrations so they apply cleanly after the code is updated.
Comments
I've updated the migrations to avoid the MigratePluginsToArrayFormatOnUsers step as it was unnecessary.
The migrations were a bit of a massive fail, really.
I've fixed the rollback on the previously quite destructive migration and it appears to revert to the previous state. The only snag is that the code won't support that database state as the relationship will be missing - but that's a given, I suppose.
Need to reopen. Same issue different error. Tried to update a different site. This time I get:
~/code/fitnessplus/refinery[master]% rake db:migrate (in /Users/ryanwood/code/fitnessplus/refinery) rake aborted! :thumbnails option should be a hash: e.g. :thumbnails => { :foo => '50x50' } (See full trace by running task with --trace)The issue is the code is updated to expect the new RefinerySettings logic (yaml) but it is still getting the ruby string from the db (for image_thumbnails) anyway.
I got around it by running this in script/console:
RefinerySetting[:image_thumbnails] = eval(RefinerySetting[:image_thumbnails])Then the migration ran fine. May be a good idea to do these conversions (i.e. settings to YAML) directly using YAML in the migration rather than depending on the business object that may already be changed. Just a thought.
-
I think images could benefit from the use of friendly_id (slugs) so that if an image is "renamed" (uploaded over the top of an existing image with a new image name) then the links to that image would still work.
Then images would have a url like:
/images/friendly/my-image.jpg or
/images/friendly/my-image"friendly" being some subdirectory name that we come up with so that they can't conflict with programmatically added images..
This would also abstract the use of attachment_fu which would make it easier to swap this out with another plugin if the desire ever arose to do so..
Thoughts? Would this work? Would it be better?
Comments
-
I got Refinery working with S3 (using attachment_fu). Everything works great except when you add an image to a page part, it prepends '/images/system' in front of the S3 url which breaks it.
Comments
I sent a pull request with a patch for this.
commit: ryanwood/Refinery@8877024 -
I created two users with differing permissions (plugin access). Because plugins are stored in a global var ($plugins), they are not reset when I log out and log back in. I have to restart the app to see the changes.
Specifically if you log in with a user that has access to no plugins and then try to login as a user with access to more plugins, the additional plugins will not show up. So on user change, plugins are subtracted, but never added back.
Comments
Hi Ryan,
I'm planning on fixing this in the next couple of days.
Cheers,
PhilThis is effecting the user manager that I'm working on (actually just an enhancement to the authentication plugin). I need a static list of list registered plugins that never changes as well as the sub set that the current user has access to (which would change on each authenticated context).
I'm curious how are you approaching this fix. I had some ideas as well but don't want to step on your toes.
-
Due to the eval call in refinery settings, you can't have a string with a comma in it. For instance I added a setting called 'meta-description' with a value of 'Ryan, Todd' and get the following error:
SyntaxError in Admin/refinery_settings#index
Showing vendor/plugins/refinery_settings/app/views/admin/refinery_settings/index.html.erb where line #25 raised:
(eval):1:in `value': compile error (eval):1: syntax error, unexpected $end, expecting '=' Ryan, Todd
^If I remove the comma all is fine. I'd create a patch, but I'm not entirely sure of the intent of the eval call. Maybe using ERB would be a better option? Let me know if I can help.
-Ryan
Comments
Not sure that will work either, assuming you want to convert the string 'true' to an instance of TrueClass. I'll play around.
A workaround is to quote the value in the text box so it is evaled as a string. Not ideal, but it works for now.
I think it'd be best to convert the refinery settings to using YAML for their database values.. what do you think?
-
0 comments Created 3 months ago by parndtReordering may fail if object created with a numeric title.unverifiedxEven if the title is then renamed, e.g. 1 renamed to One it still seems to exhibit weird reordering until the object is deleted and recreated with an alpha title. Could be something to do with slugs..
Comments
-
Is the code source of refinery too big?
Is there any way we can reduce this (besides removing vendor/rails)Comments
-
We can use '
Document? or patch? It crashed the demo site.
Comments
Hi Ron,
If you could fork the project and push in a patch for this it'd be much appreciated, otherwise I'm sure it'll get fixed in a later build. So if you want the credit feel free to do it now, thanks!
Phil
I think the ultimate solution to this problem is to move (back) to YAML for refinery settings.
Phil
RonPhillips
Wed Sep 16 03:43:40 -0700 2009
| link
Thanks, I couldn't figure it out. Nice CMS, though.
-
running db:schema:load blows up with - no such file to load -- unicode
2 comments Created 6 months ago by PeterBerkenboschrake db:schema:load
rake aborted!
no such file to load -- unicode
Comments
PeterBerkenbosch
Fri Jun 26 02:19:10 -0700 2009
| link
sudo gem install unicode fixed it :)
Perhaps add a gem dependency ?





If you read your development.log is it outputting messages about imagemagick failing?
How did you install rmagick etc?
It was a problem due to a bad install of imagemagick and rmagick. Hence this issue is resolved.