ruby-on-rails: route not found in partial
- by cbrulak
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?