Ticket #28912

No Route for term_link_new in Redmine 1.4

오픈 날짜: 2012-07-04 20:42 마지막 업데이트: 2012-07-04 20:42

Reporter:
(Anonymous)
소유자:
(None)
Type:
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

Error executing the term macro (No route matches {:project_id=>nil, :controller=>"glossary", :new_term_name=>"test", :action=>"new"})

Ticket History (3/5 Histories)

2012-07-04 20:42 Updated by: None
  • New Ticket "No Route for term_link_new in Redmine 1.4" created
2012-07-04 20:48 Updated by: 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

2012-07-04 20:56 Updated by: None
댓글 올리기

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
2012-07-04 21:55 Updated by: None
댓글 올리기

The problem is, that proj is nil

2012-07-04 21:59 Updated by: None
댓글 올리기

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

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login