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
to_js

to_js() Instance Public methods #to_js simply tries to render a template. If no template is found, raises the error.

api_behavior

api_behavior(error) Instance Protected methods This is the common behavior for formats associated with APIs, such as :xml and :json.

api_location

api_location() Instance Protected methods Alias for: resource_location

default_action

default_action() Instance Protected methods By default, render the :edit action for HTML requests with errors, unless the verb was POST.

default_render

default_render() Instance Protected methods If a response block was given, use it, otherwise call render on controller.

display

display(resource, given_options={}) Instance Protected methods Display is just a shortcut to render a resource with the current format. display @user, status: :ok For XML requests it's equivalent to: render xml: @user, status: :ok Options sent by the user are also used: respond_with(@user, status: :created) display(@user, status: :ok) Results in: render xml: @user, status: :created

display_errors

display_errors() Instance Protected methods

has_errors?

has_errors?() Instance Protected methods Check whether the resource has errors.

has_renderer?

has_renderer?() Instance Protected methods Check whether the necessary Renderer is available

json_resource_errors

json_resource_errors() Instance Protected methods

Popular Articles
ServiceReferenceGraphNode class ServiceReferenceGraphNode Represents a node in your service graph. Value is typically a definition, or an alias. Methods __construct(str
love.graphics.arc love.graphics.arc Available since LÖVE 0.8.0 This function is not supported in earlier versions. Draws a filled or unfilled arc at position (x, y
GLM.hessian_factor() statsmodels.genmod.generalized_linear_model.GLM.hessian_factor GLM.hessian_factor(params, scale=None, observed=True) [source] Weights for calculat
love.audio.getVolume love.audio.getVolume Returns the master volume. Function Synopsis volume = love.audio.getVolume( ) Arguments None. Returns number volume The curre
EWM.var() EWM.var(bias=False, *args, **kwargs) [source] exponential weighted moving variance Parameters: bias : boolean, default False Use a standard est


Page 1956 of 11844

|< < Prev 1953 1954 1955 1956 1957 1958 1959 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions