z z z z z z z z z

z z z z z z z z z

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Bookmarklet Generator
  • Business Name Generator
  • What is my IP address?
  • Whois Lookup

Tag Archives: ruby on rails

Post navigation

Newer posts →

Active Record Validations and Callbacks – Skipping rails validations

Link

Reply

Active Record Validations and Callbacks – Skipping rails validations

Posted on July 16, 2009 by zzz_zwp | Leave a reply

Sendmail & Spam Filter Tricks in Rails – sendmail configuration

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'
}
Posted on June 29, 2009 by zzz_zwp | Leave a reply

Railscasts – Catch-all Route

Link

Reply

Railscasts – Catch-all Route

Another useful routing screencast. This screencast explains how to create a catch all route.

Posted on June 29, 2009 by zzz_zwp | Leave a reply

Railscasts – Custom Routes

Link

Reply

Railscasts – Custom Routes

Excellent Ruby on Rails routing tutorial for creating custom routes. Explains how routes can be defined to pass parameters into the controller.

Posted on June 29, 2009 by zzz_zwp | Leave a reply

Post navigation

Newer posts →

Shopify for Ecommerce

Use Shopify for ecommerce

WP Engine

Use WP Engine for WordPress Hosting




Recent Posts

  • Here’s a list of handy Vim commands
  • Uses This Product Listing
  • Postgresql Commands to Import / Export (pg_restore, pg_dump) databases
  • mkdir(1) – Linux manual page
  • Ruby on Rails Infinite Scroll Patterns

Recent Comments

    Archives

    • March 2023
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • May 2017
    • April 2017
    • February 2015
    • January 2015
    • November 2014
    • October 2014
    • July 2014
    • June 2014
    • May 2014
    • January 2014
    • November 2013
    • August 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • April 2009
    • May 2008

    Categories

    • Coding
    • Editors
    • Hotkeys
    • MacOS
    • Shell Scripts
    • Uncategorized
    • Vim

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © zzzzzzzzz
    Toggle Console (1)
    Unknown
    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the gotmls domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) on line 6131 in file /home1/zzz/public_html/wp-includes/functions.php
    Profiler (0 ms)
    No entries found.
    SQL (39 queries | 354.99 ms)
    1.7202
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'GOTMLS_nonce_array' 
    LIMIT 1
    0.4299
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'GOTMLS_definitions_array' 
    LIMIT 1
    0.6020
    SELECT * 
    FROM `wp_posts` 
    WHERE post_type = 'gotmls_results' 
    AND post_name = '67951cfdf54515b2e5f228ec366e3123'
    0.4201
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'gzipcompression' 
    LIMIT 1
    0.4518
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'rsssl_encryption_keys_set' 
    LIMIT 1
    0.5181
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'rsssl_le_certificate_generated_by_rsssl' 
    LIMIT 1
    0.4771
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'rsssl_ssl_activation_active' 
    LIMIT 1
    0.7510
    SELECT option_name, option_value 
    FROM wp_options 
    WHERE option_name IN ('_site_transient_wp_theme_files_patterns-521ceac6f7ea50d1f2c96a08a1af8fc4','_site_transient_timeout_wp_theme_files_patterns-521ceac6f7ea50d1f2c96a08a1af8fc4')
    0.4730
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'preload_cache_counter' 
    LIMIT 1
    0.7389
    SELECT t.term_id 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE tt.taxonomy IN ('post_tag') 
    AND t.slug IN ('ruby-on-rails') 
    LIMIT 1
    0.6449
    SELECT t.*, tt.* 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE t.term_id IN (37)
    1.8580
    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID 
    FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) 
    WHERE 1=1 
    AND ( wp_term_relationships.term_taxonomy_id IN (37) ) 
    AND ((wp_posts.post_type = 'post' 
    AND (wp_posts.post_status = 'publish'))) 
    GROUP BY wp_posts.ID 
    ORDER BY wp_posts.post_date DESC 
    LIMIT 10, 10
    4.4608
    SELECT FOUND_ROWS()
    0.7560
    SELECT wp_posts.* 
    FROM wp_posts 
    WHERE ID IN (1418,1490,1496,1497)
    0.6599
    SELECT post_id, meta_key, meta_value 
    FROM wp_postmeta 
    WHERE post_id IN (1418,1490,1496,1497) 
    ORDER BY meta_id ASC
    1.7591
    SELECT DISTINCT t.term_id, tr.object_id 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id 
    WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') 
    AND tr.object_id IN (1418, 1490, 1496, 1497) 
    ORDER BY t.name ASC
    1.2419
    SELECT t.*, tt.* 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE t.term_id IN (402,6,13,150,14,401,1,376,98)
    0.6709
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'mwp_communication_key' 
    LIMIT 1
    0.5610
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'mwp_communication_keys' 
    LIMIT 1
    0.5319
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'can_compress_scripts' 
    LIMIT 1
    0.6061
    SELECT * 
    FROM wp_posts 
    WHERE ID = 1716 
    LIMIT 1
    0.3371
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'https_migration_required' 
    LIMIT 1
    0.4561
    SELECT option_value 
    FROM wp_options 
    WHERE option_name = 'site_logo' 
    LIMIT 1
    0.6080
    SELECT t.*, tt.* 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE t.term_id = 468
    1.5252
    SELECT wp_posts.* 
    FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) 
    WHERE 1=1 
    AND ( wp_term_relationships.term_taxonomy_id IN (468) ) 
    AND wp_posts.post_type = 'nav_menu_item' 
    AND ((wp_posts.post_status = 'publish')) 
    GROUP BY wp_posts.ID 
    ORDER BY wp_posts.menu_order ASC
    0.9339
    SELECT post_id, meta_key, meta_value 
    FROM wp_postmeta 
    WHERE post_id IN (1670,1671,1672,1681,1682) 
    ORDER BY meta_id ASC
    0.7129
    SELECT wp_posts.* 
    FROM wp_posts 
    WHERE ID IN (1542,1534,1579,1544)
    0.7730
    SELECT post_id, meta_key, meta_value 
    FROM wp_postmeta 
    WHERE post_id IN (1542,1534,1579,1544) 
    ORDER BY meta_id ASC
    0.8340
    SELECT user_id, meta_key, meta_value 
    FROM wp_usermeta 
    WHERE user_id IN (1) 
    ORDER BY umeta_id ASC
    0.8130
    SELECT * 
    FROM wp_users 
    WHERE ID IN (1)
    1.0340
    SELECT wp_posts.ID 
    FROM wp_posts 
    WHERE 1=1 
    AND wp_posts.post_type = 'post' 
    AND ((wp_posts.post_status = 'publish')) 
    ORDER BY wp_posts.post_date DESC 
    LIMIT 0, 5
    303.4301
    SELECT wp_posts.* 
    FROM wp_posts 
    WHERE ID IN (1771,1734,1728,1725,1721)
    1.4451
    SELECT post_id, meta_key, meta_value 
    FROM wp_postmeta 
    WHERE post_id IN (1771,1734,1728,1725,1721) 
    ORDER BY meta_id ASC
    2.9051
    SELECT DISTINCT t.term_id, tr.object_id 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id 
    WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') 
    AND tr.object_id IN (1771, 1734, 1728, 1725, 1721) 
    ORDER BY t.name ASC
    1.2488
    SELECT t.*, tt.* 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE t.term_id IN (489,490,478,484,492,483,479,480,485,486,481,482,491,82)
    1.0679
    SELECT wp_comments.comment_ID 
    FROM wp_comments JOIN wp_posts ON wp_posts.ID = wp_comments.comment_post_ID 
    WHERE ( comment_approved = '1' ) 
    AND comment_type NOT IN ('note') 
    AND wp_posts.post_status IN ('publish') 
    ORDER BY wp_comments.comment_date_gmt DESC 
    LIMIT 0,5
    15.4972
    SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts 
    FROM wp_posts 
    WHERE post_type = 'post' 
    AND post_status = 'publish' 
    GROUP BY YEAR(post_date), MONTH(post_date) 
    ORDER BY post_date DESC
    0.6249
    SELECT t.term_id 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE tt.taxonomy IN ('category') 
    AND tt.count > 0 
    ORDER BY t.name ASC
    0.4139
    SELECT t.*, tt.* 
    FROM wp_terms AS t 
    INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id 
    WHERE t.term_id IN (475,474)
    Templates
    [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
    Globals
    $_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://www.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' => 'aau8C456HuRZsdLykU4aBwAA5Aw',
      'REDIRECT_QS_ConnectionId' => '177286247512042080937409',
      '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' => '41',
      'REDIRECT_H2_STREAM_TAG' => '937409-105-41',
      'REDIRECT_STATUS' => '200',
      'UNIQUE_ID' => 'aau8C456HuRZsdLykU4aBwAA5Aw',
      'QS_ConnectionId' => '177286247512042080937409',
      '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' => '41',
      'H2_STREAM_TAG' => '937409-105-41',
      'SERVER_SIGNATURE' => '',
      'SERVER_NAME' => 'www.zzzzzzzzz.net',
      'SERVER_ADDR' => '192.185.137.117',
      'SERVER_PORT' => '443',
      'REMOTE_ADDR' => '216.73.216.148',
      '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' => '44818',
      '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' => 1772862475.130261898040771484375,
      'REQUEST_TIME' => 1772862475,
      'argv' => 
      array (
      ),
      'argc' => 0,
    );

    Close