Revision 1297:0a574315af3e .svn/pristine/81
| .svn/pristine/81/813d4652d70815bee6e19eb669005e506172f07f.svn-base | ||
|---|---|---|
| 1 |
# General Apache options |
|
| 2 |
<IfModule mod_fastcgi.c> |
|
| 3 |
AddHandler fastcgi-script .fcgi |
|
| 4 |
</IfModule> |
|
| 5 |
<IfModule mod_fcgid.c> |
|
| 6 |
AddHandler fcgid-script .fcgi |
|
| 7 |
</IfModule> |
|
| 8 |
Options +FollowSymLinks +ExecCGI |
|
| 9 |
|
|
| 10 |
# If you don't want Rails to look in certain directories, |
|
| 11 |
# use the following rewrite rules so that Apache won't rewrite certain requests |
|
| 12 |
# |
|
| 13 |
# Example: |
|
| 14 |
# RewriteCond %{REQUEST_URI} ^/notrails.*
|
|
| 15 |
# RewriteRule .* - [L] |
|
| 16 |
|
|
| 17 |
# Redirect all requests not available on the filesystem to Rails |
|
| 18 |
# By default the cgi dispatcher is used which is very slow |
|
| 19 |
# |
|
| 20 |
# For better performance replace the dispatcher with the fastcgi one |
|
| 21 |
# |
|
| 22 |
# Example: |
|
| 23 |
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
|
| 24 |
RewriteEngine On |
|
| 25 |
|
|
| 26 |
# If your Rails application is accessed via an Alias directive, |
|
| 27 |
# then you MUST also set the RewriteBase in this htaccess file. |
|
| 28 |
# |
|
| 29 |
# Example: |
|
| 30 |
# Alias /myrailsapp /path/to/myrailsapp/public |
|
| 31 |
# RewriteBase /myrailsapp |
|
| 32 |
|
|
| 33 |
RewriteRule ^$ index.html [QSA] |
|
| 34 |
RewriteRule ^([^.]+)$ $1.html [QSA] |
|
| 35 |
RewriteCond %{REQUEST_FILENAME} !-f
|
|
| 36 |
<IfModule mod_fastcgi.c> |
|
| 37 |
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
|
| 38 |
</IfModule> |
|
| 39 |
<IfModule mod_fcgid.c> |
|
| 40 |
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
|
| 41 |
</IfModule> |
|
| 42 |
|
|
| 43 |
# In case Rails experiences terminal errors |
|
| 44 |
# Instead of displaying this message you can supply a file here which will be rendered instead |
|
| 45 |
# |
|
| 46 |
# Example: |
|
| 47 |
# ErrorDocument 500 /500.html |
|
| 48 |
|
|
| 49 |
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" |
|
| .svn/pristine/81/814f8af4df96f153e85bc7dc0096f2b91de209b7.svn-base | ||
|---|---|---|
| 1 |
<% if @issue %> |
|
| 2 |
$('#related-issues').html('<%= escape_javascript(render :partial => "related_issues") %>');
|
|
| 3 |
$('#related-issue-<%= @issue.id %>').effect("highlight");
|
|
| 4 |
$('#issue_id').focus();
|
|
| 5 |
<% else %> |
|
| 6 |
alert("<%= raw(escape_javascript(l(:label_issue) + ' ' + l('activerecord.errors.messages.invalid'))) %>");
|
|
| 7 |
<% end %> |
|
Also available in: Unified diff