开发者

Is there an online code editor for Ruby on Rails? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_如何学Python Closed 11 years ago.

Is there an online code editor for Ruby on Rails ?

To directly edit files on the server ?


If what you are looking for is an online editor that supports Ruby syntax highlighting and FTP or SFTP access to directly edit the files on the server, look into Cloud9 IDE. It also supports access to Github and Bitbucket.

However, it does not support any Rails commands (like generate or rake). Also, you'd have to restart the server (like touch tmp/restart.txt) in order to show any changes you made to any files that require the server to be reloaded.


I sincerely hope the answer to this question is still "No".

What exactly are you wanting to edit on the server? If the answer is view templates, then look into Liquid - you can provide an admin for template bits that you store in the database.

Editing (let alone displaying) application code via a web interface is madness. Allowing users to enter evaluated code is crazy. I have an app that lets users enter formulas, but these are expressed in a mathematical grammar parsed by polyglot/treetop - not in Ruby code. Application code should be written - with tests - on a dev. machine and only deployable by trusted users.

Nevermind that if you were updating the code on a server, you'd need to tell the app server to reload the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜