Parent controller_name (nested)

Hi people,
i have this route in rails


we can see we have a namespace with prefix in gdm/9/cd/

also we have two controllers

i will create a helper, and need get ther controllers name with

i know i can get “comments” with <%=controller_name%>

But how can i get “posts”

Sorry for my bad english =/


Rodrigo Mendonça
(62) 8567-3142

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs