No Route for term_link_new in Redmine 1.4
:project_id => proj have to :project_id => proj.id
def term_link_new(name, proj) link_to(name + '?', {:controller => 'glossary', :action => 'new', :project_id => proj.id, :new_term_name => CGI::escapeHTML(name)}, {:class=>'new'}) end
Reply To None
:project_id => proj have to :project_id => proj.id {{{ def term_link_new(name, proj) link_to(name + '?', {:controller => 'glossary', :action => 'new', :project_id => proj.id, :new_term_name => CGI::escapeHTML(name)}, {:class=>'new'}) end }}}
have to be :project_id => proj.identifier
def term_link_new(name, proj) link_to(name + '?', {:controller => 'glossary', :action => 'new', :project_id => proj.identifier, :new_term_name => CGI::escapeHTML(name)}, {:class=>'new'}) end
The problem is, that proj is nil
Reply To None
The problem is, that proj is nil
Everywhere outside of the wiki (like Issue or projectdesc) params[:project_id] does not exists
Error executing the term macro (No route matches {:project_id=>nil, :controller=>"glossary", :new_term_name=>"test", :action=>"new"})