Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundler compatibility #8

Closed
tomash opened this issue Jun 20, 2010 · 9 comments
Closed

bundler compatibility #8

tomash opened this issue Jun 20, 2010 · 9 comments

Comments

@tomash
Copy link

tomash commented Jun 20, 2010

I seem to be having some trouble with Irwi Wiki since switching my app to use Bundler. I get a weird error on any wiki show page:

missing interpolation argument in "%{count} %B %Y, %H:%M" ({:object=>Sun Jan 10 17:10:07 +0100 2010} given)

Showing vendor/plugins/irwi/app/views/base_wiki_pages/_wiki_page_info.html.erb where line #2 raised:

Extracted source (around line #2):

1: <div class="wiki_page_info">
2:   <%=wt "Revised on {{time}} by {{user}}", :time => l( page.updated_at, :format => :long ), :user => wiki_user( page.updator ) %>
3: </div>

And yes, this error occurs also when Irwi is installed as plugin, not as gem.
Ruby i18n version 0.4.1 (latest one).

I get an ever weirder error on edit pages:

NameError in Wiki_pages#edit

Showing vendor/plugins/irwi/app/views/base_wiki_pages/edit.html.erb where line #16 raised:

uninitialized constant WikiPage::WikiPageAttachment

Extracted source (around line #16):

13: <% end %>
14: 
15: 
16: <%- @page.attachments.each do |attachment| %>
17:   <%= image_tag attachment.wiki_page_attachment.url(:thumb) %>
18:   <%= "Attachment_#{attachment.id}" %>
19:   <%= link_to wt('Remove'), wiki_remove_page_attachment_path(attachment.id), :method => :delete %>

Are you able to reproduce it?

@alno
Copy link
Owner

alno commented Jun 24, 2010

Sorry, but I cann't reproduce these errors. May you write which Rails version are you using?

About second year - please check it with current version, it may be fixed now.

@tomash
Copy link
Author

tomash commented Jun 25, 2010

rails 2.3.5, ruby 1.8.7

I'll check the latest Irwi tonight.

@ravibhim
Copy link
Contributor

ruby script/generate irwi_wiki_updates
This generate should fix it.

@tomash
Copy link
Author

tomash commented Aug 8, 2010

there's no irwi_wiki_updates generator in latest (0.2.3) irwi

@tomash
Copy link
Author

tomash commented Aug 8, 2010

and nothing has changes after reinstalling irwi, the issue is still here

@tomash
Copy link
Author

tomash commented Aug 29, 2010

any update on that? I still get the same error, regardless of whether I use plugin or gem version of irwi.

@tomash
Copy link
Author

tomash commented Aug 29, 2010

OK, so the thing is: it's probably not a Bundler-related issue, it's just some weird incompatiblity with i18n gem (the 18n.localize method is the one borking here). I'll have a deeper look at it.

@tomash
Copy link
Author

tomash commented Aug 29, 2010

OK, it's a I18n/Rails incompatibility issue:
http://github.com/svenfuchs/i18n/issues/issue/20

For I18n 0.4.1 the minimal recommended version of Rails is 2.3.6. After upgrading from 2.3.5 to 2.3.8 Irwi works like a charm.

(it might be worth putting in the README!)

You can close the issue :)
Thanks for the great wiki plugin!

@alno
Copy link
Owner

alno commented Aug 29, 2010

Oh! Thank you very much! I wrote about it in README.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants