Example
RoR API:
The file name: (no follows rails name convention):
actionpack/lib/action_view/helpers/javascript_helper.rb
The Module name (in namespace ActionView::Helpers) :
module JavaScriptHelper
Our custom code:
The file name:
App/Helpers/javascript_helper.rb
The Module name
module JavaScriptHelper (This produces an error, becouse RoR name
conventions expects for "Module JavascriptHelper", see for lowercase
"S")
This is the correct naming corrondences:
javascript_helper.rb <-> JavascriptHelper
java_script_helper.rb <-> JavaScriptHelper
How we can avoid the naming convention like in rails API??? :(
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.