Ruby on Rails: Difference between revisions

Content deleted Content added
m Redirect bypass from REST to Representational state transfer using popups
m Redirect bypass from SOAP (protocol) to SOAP using popups
Line 109:
Ruby on Rails is most commonly not connected to the Internet directly, but through some front-end [[web server]]. [[Mongrel (web server)|Mongrel]] was generally preferred over WEBrick in the early days,{{Citation needed|date=January 2010}} but it can also run on [[Lighttpd]], [[Apache (web server)|Apache]], [[Cherokee (Webserver)|Cherokee]], [[Hiawatha (web server)|Hiawatha]], [[nginx]] (either as a module — [[Phusion Passenger]] for example — or via [[Common Gateway Interface|CGI]], [[FastCGI]] or [[mod_ruby]]), and many others. From 2008 onwards, the Passenger web server replaced Mongrel as the most-used web server for Ruby on Rails.<ref>[http://rubyonrails.org/deploy Official deployment instructions suggests use of Passenger]</ref>
 
Ruby on Rails is also noteworthy for its extensive use of the [[JavaScript]] libraries [[Prototype JavaScript Framework|Prototype]] and [[Script.aculo.us]] for [[Ajax (programming)|Ajax]].<ref>[http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptHelper.html Ruby on Rails includes the Prototype JavaScript framework and the Scriptaculous JavaScript controls and visual effects library.]</ref> Ruby on Rails initially utilized lightweight [[SOAP (protocol)|SOAP]] for web services; this was later replaced by [[Representational State Transfer|RESTful]] [[web services]]. Ruby on Rails 3.0 uses a technique called [[Unobtrusive JavaScript]] to separate the functionality (or logic) from the structure of the web page. jQuery is fully supported as a replacement for [[Prototype JavaScript Framework|Prototype]] and is the default JavaScript library in Rails 3.1, reflecting an industry-wide move towards jQuery. Additionally, [[CoffeeScript]] was introduced in Rails 3.1 as the default Javascript language.
 
Since version 2.0, Ruby on Rails offers both [[HTML]] and [[XML]] as standard output formats. The latter is the facility for RESTful web services.