On May 31, 11:19 pm, Mk 27 <[email protected]> wrote:
> I even grepped through the API for "\.js\.erb" and it's not in there
> even once...perhaps the suffix recently changed?  Anyway, any pointers
> to reading material here would be much appreciated.
>
template extensions have two parts: the js (or html, or something
else) tells rails what you are producing. the second part tells rails
what should be use to render it: erb, haml, markaby, builder etc...
js.erb just means 'this is javascript and you should run it through
erb first). Other than that there's not a whole lot to explain.

>
> I am just working at home while learning anyway.  I was surprised when I
> noticed I get unrestricted access to the filesystem by default; I
> presume WEBrick was not intended for security.  I would assume that
> if/when I put something up on a real server, they will not be permitting
> that possibility if it can be prevented?  Otherwise I'm surprised anyone
> hosts Rails at all...but further thoughts from anyone would be welcome.

that's up to you really. Run your app code as a user that doesn't have
access to more than it needs to.

Fred
> --
> Posted viahttp://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