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


navigation_location

navigation_location() Instance Protected methods Alias for: resource_location

navigation_behavior

navigation_behavior(error) Instance Protected methods This is the common behavior for formats associated with browsing, like :html, :iphone and so forth.

json_resource_errors

json_resource_errors() Instance Protected methods

has_renderer?

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

has_errors?

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

display_errors

display_errors() Instance Protected methods

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

default_render

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

default_action

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

api_location

api_location() Instance Protected methods Alias for: resource_location

Page 376 of 2275

|< < Prev 373 374 375 376 377 378 379 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions