flowandcrash
2007-Jan-15 06:54 UTC
possible file naming inconsistency (w/ example/suggestion)
im currently reading awdwr se, programming ruby se, and rails recipes. while i''m still learning, i wanted to ask about a file naming convention which seems inconsistent to me. i''m hoping someone can either explain why i''m wrong or direct me to a place to report this as a bug. example (from the table on page 236 for whomever has awdwr se) : controller file - app/controllers/store_controller.rb layout file - app/views/layouts/store.rhtml why isn''t the layout file "store_layouts.rhtml" or, preferrably, why isn''t the controller file simply "store.rb"? (as it seems to violate "DRY" to state controller in 2 places. likewise with the helper file /app/helpers/store_helper.rb) thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---