Navigating to partials
Is it possible to navigate to a partial from within a view?
Example:
<h1><%= t("login_name") %></h1>
<%= render partial => "shared/login" %>
<%= t("or") %> <%= link_to t("create_a_new_account"), signup_path %>
Should it not be possible to put your cursor on login in the render partial line above and press CTRL-B to open up the corresponding partial view? I tried, doesn't work.
Bharat
请先登录再写评论。
Hello Bharat,
Yes, this should work
In this example partial should be symbol or string. In your case partial is some identifier (method call or local variable or etc). I've check feature on small example and it works in RubyMine 1.1.
RubyMine provides resolve(navigation to definition on Ctrl+B) and autocompletion in: ... => "<caret>" %>