Rexko / rexko

Let's make dictionaries!
http://rexko.org/
MIT License
5 stars 1 forks source link

Error in #wiki_format #126

Closed kohath closed 12 years ago

kohath commented 12 years ago

After saving 'adalligo' (/lexemes/1727):

NoMethodError in Lexemes#show 

 Showing c:/Users/Muke/My Programming/lexicon (live)/app/views/shared/_etymology.rhtml where line #2 raised: 
undefined method `keys' for #<Array:0x5a32f70>

Extracted source (around line #2): 
1: <div class="lexform-etymology" <%= lang_for(etymology) %>>
2:      [<%= sanitize html_format(etymology) %>]
3: </div>

Trace of template inclusion: app/views/shared/_subentry.rhtml, app/views/shared/_lexeme.rhtml, app/views/lexemes/show.html.erb

Rails.root: c:/Users/Muke/My Programming/lexicon (live)
Application Trace | Framework Trace | Full Trace 
app/helpers/etymologies_helper.rb:81:in `block in wiki_format'
app/helpers/etymologies_helper.rb:63:in `each'
app/helpers/etymologies_helper.rb:63:in `wiki_format'
app/helpers/etymologies_helper.rb:112:in `wiki_format'
app/helpers/etymologies_helper.rb:3:in `html_format'
app/views/shared/_etymology.rhtml:2:in `_app_views_shared__etymology_rhtml__973794735_33734712_663446168'
app/views/shared/_subentry.rhtml:18:in `_app_views_shared__subentry_rhtml__17886549_33376668__565301608'
app/views/shared/_lexeme.rhtml:4:in `_app_views_shared__lexeme_rhtml__226230008_33687240_689337224'
app/views/lexemes/show.html.erb:1:in `_app_views_lexemes_show_html_erb___898407343_33738168__440210746'
app/controllers/lexemes_controller.rb:37:in `show'
kohath commented 12 years ago

Possibly related to #117

kohath commented 12 years ago

Actually might be the same as #118, will have to check if it's broken in current code

kohath commented 12 years ago

Looked at it. It does seem that this is still an issue.

kohath commented 12 years ago

Isolated the cause while working on #117. Fixed it so that it doesn't throw an error anymore (but need to fully fix it so it actually generates the correct text).