homeASCIIcasts

Episodes tagged with “views”

  1. 207

    语法高亮 Other translations: En Es It

    Three popular choices for syntax highlighting in Rails applications are discussed in this episode: CodeRay, Ultraviolets and Pygments.

    Tags: views plugins

  2. 205

    Unobtrusive JavaScript Other translations: En Es De It

    Rails 3 makes great use of unobtrusive JavaScript, helping keep content and behaviour separate.

    Tags: rails-30 views ajax

  3. 204

    XSS Protection in Rails 3 Other translations: En Es It

    In previous versions of Rails it was easy for your application to be vulnerable to cross-site scripting attacks. Rails 3 solves this problem but automatically escaping output.

    Tags: rails-30 views security

  4. 197

    嵌套模型的form第二部分 Other translations: En Es It Fr

    Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.

    Tags: forms views

  5. 196

    嵌套模型的form第一部分 Other translations: En Es It Fr

    The accepts_nested_attributes_for method, introduced in Rails 2.3, makes handling multiple models in a form much easier. Find out how to use it in this episode.

    Tags: forms views active-record

  6. 189

    嵌入关联 Other translations: En It

    in this episode we show you how to embed a one-to-many or many-to-many association in a single integer field.

    Tags: active-record views

  7. 178

    七个安全技巧 Other translations: En

    Security is paramount in your Rails applications. Here we show seven commons security flaws from mass assignment to CSRF.

    Tags: security forms views active-record

  8. 174

    用AJAX进行分页 Other translations: En

    Use jQuery to add unobtrusive JavaScript links to a paginated list.

    Tags: ajax views

  9. 165

    批量修改记录 Other translations: En

    Select multiple records with checkboxes and edit them all on one form. Find out how to use virtual attributes to update values relatively.

    Tags: forms views routing

  10. 136

    jQuery Other translations: En It

    In this episode we recreate the AJAX form submission we did back in episode 43 but with jQuery instead of Prototype and RJS.

    Tags: ajax controllers views