Teedub wrote:
> It seems that I have a choice of
> blah.js
> blah.rjs
> blah.js.rjs
> and blah.js.erb
> plus I guess blah.rjs.erb (maybe)
> 
> I know that this is somewhat version dependent.
> Which is the "bestest"? and is there a difference.

Remember, the template naming format is:
action.type.renderer

So for blah.html.erb, Rails will use the ERb renderer and serve the 
result as HTML.  Likewise, for blah.js.rjs , Rails will use the RJS 
renderer and serve the result as JavaScript.  blah.js would be a plain 
JavaScript file that doesn't get processed by Rails, and blah.rjs is the 
deprecated Rails 1.x way of naming blah.js.rjs.  The remaining 
combinations are left as an exercise to the student. :)

> 
> Thanks in advance.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to