Active Record Validations and Callbacks – Skipping rails validations
Active Record Validations and Callbacks – Skipping rails validations
Link
Reply
Sendmail & Spam Filter Tricks in Rails – sendmail configuration
I had to setup this configuration to make sendmail work with a recent rails application:
ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.sendmail_settings = {
:location => '/usr/sbin/sendmail',
:arguments => '-i -t -f support@yourapp.com'
}
Another useful routing screencast. This screencast explains how to create a catch all route.
Excellent Ruby on Rails routing tutorial for creating custom routes. Explains how routes can be defined to pass parameters into the controller.
No entries found. |
No entries found. |
0.3350 |
|
0.2570 |
|
0.2491 |
|
0.3390 |
|
0.5119 |
|
0.3700 |
|
0.4761 |
|
0.8838 |
|
0.5479 |
|
0.8860 |
|
0.4880 |
|
1.5361 |
|
0.4210 |
|
0.7939 |
|
0.3710 |
|
1.2701 |
|
1.0121 |
|
0.7038 |
|
0.7200 |
|
0.5932 |
|
0.5801 |
|
1.7960 |
|
0.6979 |
|
0.4990 |
|
0.6289 |
|
1.5919 |
|
0.9201 |
|
0.4621 |
|
15.0852 |
|
0.4449 |
|
1.2190 |
|
0.5419 |
|
0.6552 |
|
3.2530 |
|
0.6440 |
|
0.7658 |
|
[0] => themes/twentyeleven/inc/theme-options.php [1] => themes/twentyeleven/inc/widgets.php [2] => themes/twentyeleven/tag.php [3] => themes/twentyeleven/header.php [4] => themes/twentyeleven/searchform.php [5] => themes/twentyeleven/content-link.php [6] => themes/twentyeleven/sidebar.php [7] => themes/twentyeleven/footer.php [8] => themes/twentyeleven/sidebar-footer.php
$_GET = array (
);
$_POST = array (
);
$_COOKIE = array (
);
$_SESSION = array (
);
$_SERVER = array (
'SERVER_SOFTWARE' => 'Apache',
'REQUEST_URI' => '/tag/ruby-on-rails/page/2/',
'LSPHP_ENABLE_USER_INI' => 'on',
'PATH' => '/usr/local/bin:/usr/bin:/bin',
'TEMP' => '/tmp',
'TMP' => '/tmp',
'TMPDIR' => '/tmp',
'PWD' => '/',
'HTTP_ACCEPT' => '*/*',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'CONTENT_LENGTH' => '0',
'HTTP_HOST' => 'www.zzzzzzzzz.net',
'HTTP_REFERER' => 'https://zzzzzzzzz.net/tag/ruby-on-rails/page/2',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_X_HTTPS' => '1',
'REDIRECT_UNIQUE_ID' => 'Z_ABSO7e4ZgCgvpEKTVtwgAAJgU',
'REDIRECT_QS_ConnectionId' => '174378221620008033167908',
'REDIRECT_SCRIPT_URL' => '/tag/ruby-on-rails/page/2/',
'REDIRECT_SCRIPT_URI' => 'https://www.zzzzzzzzz.net/tag/ruby-on-rails/page/2/',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_SSL_TLS_SNI' => 'www.zzzzzzzzz.net',
'REDIRECT_HTTP2' => 'on',
'REDIRECT_H2PUSH' => 'off',
'REDIRECT_H2_PUSH' => 'off',
'REDIRECT_H2_PUSHED' => '',
'REDIRECT_H2_PUSHED_ON' => '',
'REDIRECT_H2_STREAM_ID' => '5',
'REDIRECT_H2_STREAM_TAG' => '167908-522-5',
'REDIRECT_STATUS' => '200',
'UNIQUE_ID' => 'Z_ABSO7e4ZgCgvpEKTVtwgAAJgU',
'QS_ConnectionId' => '174378221620008033167908',
'SCRIPT_URL' => '/tag/ruby-on-rails/page/2/',
'SCRIPT_URI' => 'https://www.zzzzzzzzz.net/tag/ruby-on-rails/page/2/',
'HTTPS' => 'on',
'SSL_TLS_SNI' => 'www.zzzzzzzzz.net',
'HTTP2' => 'on',
'H2PUSH' => 'off',
'H2_PUSH' => 'off',
'H2_PUSHED' => '',
'H2_PUSHED_ON' => '',
'H2_STREAM_ID' => '5',
'H2_STREAM_TAG' => '167908-522-5',
'SERVER_SIGNATURE' => '',
'SERVER_NAME' => 'www.zzzzzzzzz.net',
'SERVER_ADDR' => '192.185.137.117',
'SERVER_PORT' => '443',
'REMOTE_ADDR' => '3.135.208.215',
'DOCUMENT_ROOT' => '/home1/zzz/public_html',
'REQUEST_SCHEME' => 'https',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/home1/zzz/public_html',
'SERVER_ADMIN' => 'webmaster@zzzzzzzzz.net',
'SCRIPT_FILENAME' => '/home1/zzz/public_html/index.php',
'REMOTE_PORT' => '35593',
'REDIRECT_URL' => '/tag/ruby-on-rails/page/2/',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_NAME' => '/index.php',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => 1743782216.2127850055694580078125,
'REQUEST_TIME' => 1743782216,
'argv' =>
array (
),
'argc' => 0,
);