Just for comparison:
1. We have two project views. A "script explorer", which shows your
project a directory structure, and a "Rails Explorer" (the default)
that groups related things together and floats the most-used items up
to the top. So at the top level you have a node for "controllers",
instead of two levels down. Open a controller and the actions *and*
views are shown together.
2. Code navigation
"open associate", available from the context menu or via ctrl+alt+N or
via a ctrl-alt hyperlink will follow the Rails dispatch path. So if
you are in a controller in a login method that has a login.rhtml view
it will toggle between them. If the login action has a call to
another action, a re-direct to another action, an explicit render of a
view...it will follow that path. If there are multiple paths it gives
you a choice, unless your cursor is on the line with the redirect/
render/action call in which case it will just go there directly.
If the view doesn''t exist we''ll create it on the fly.
If a view is reachable from multiple actions and you use open
associate we will let you choose which one you go to.
The thinking here is that the normal workflow is to create/modify an
action and then create/modif a view to accomodate the changes. We
follow the same dispatch rules as Rails, so it''s very natural and you
can do your development in the same mindset.
3. Other code navigation
* If you want to go to a specific file a fast way is ctrl+shift+r
(open resource), then start typing the name.
* F3 to open the definition of a class -- so if you are in a model on
the first line ("class Mymodel << ActiveRecord::Base") and you
have
your cursor on "Base" then F3 will open that class
* On a method call (eg an action in a contrller) right click and
select "open call hierarchy" will show you all the places this is
called from, double click to navigate
* ctrl+T on a ruby type will open the type hierarchy for navigation
(not that useful in Rails app development IMO, more from Ruby coders)
* ctrl+O opensa quick outline of the current file (say a controller
with many methods), for easy navigation
* And of course the dependency viewer, double click to jump to a
dependent item or dependency
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---