ruby-on-rails: route not found in partial
        Posted  
        
            by cbrulak
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by cbrulak
        
        
        
        Published on 2010-04-05T05:17:33Z
        Indexed on 
            2010/04/05
            5:23 UTC
        
        
        Read the original article
        Hit count: 395
        
ruby-on-rails
|routes
I have a controller: twitter_status with two functions:
- tweet_post
- tweet_comment
- in routes.rb I have
map.resources :twitter_status
In my show post view, I have a partial: _show and _show_comment
In _show I have: tweet_post_twitter_status_path (...) and that works fine. 
But in the in _show_comment partial I have: 
tweet_comment_twitter_status_path (...)
but I have a NoMethodError in the show.html.erb view. 
Any ideas?
© Stack Overflow or respective owner