w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • Bulletin
  • Posts
doc_ruby_on_rails
doc_ruby_on_rails


clear!

clear!() Instance Public methods Clears out internal caches

add

add(table_name) Instance Public methods Add internal cache for table with table_name.

new

new(conn) Class Public methods

type_cast

type_cast(value, column) Instance Public methods Cast a value to a type that the database understands. For example, SQLite does not understand dates, so this method will convert a Date to a String.

quoted_true

quoted_true() Instance Public methods

quoted_false

quoted_false() Instance Public methods

quoted_date

quoted_date(value) Instance Public methods

quote_table_name_for_assignment

quote_table_name_for_assignment(table, attr) Instance Public methods Override to return the quoted table name for assignment. Defaults to table quoting. This works for mysql and mysql2 where table.column can be used to resolve ambiguity. We override this in the sqlite and postgresql adapters to use only the column name (as per syntax requirements).

quote_table_name

quote_table_name(table_name) Instance Public methods Quotes the table name. Defaults to column name quoting.

quote_string

quote_string(s) Instance Public methods Quotes a string, escaping any ' (single quote) and \ (backslash) characters.

Page 223 of 2275

|< < Prev 220 221 222 223 224 225 226 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions