Episodes tagged with “views”
-
7
All About Layouts
Everything you ever wanted to know about layouts.
Tags: views
-
8
Layouts and content_for
content_for allows you to change your layouts on a per-template basis.
Tags: views
-
17
HABTM Checkboxes
Create a list of checkboxes for easily managing a HABTM relationship.
-
18
Looping Through Flash
Displaying flash messages can be a pain. This episode shows an easy way to display all of your flash messages.
Tags: views
-
27
Cross-site Scripting
Cross-site scripting is a common security issue. FInd out why it is important to escape any user input that you display in a browser.
-
28
In Groups Of
The in_groups_of method makes it easy to render a collection of items in several columns, with one slight catch.
Tags: views active-support
-
29
group_by Month
The group_by method can be used to group lists of items for display in your Rails apps.
Tags: views active-support
-
30
Pretty Page Title
It's easy to avoid giving each page in your Rails applications its own title. Here we'll show you an easy way to do it.
Tags: views refactoring
-
31
Formatting Time
Use Ruby's strftime method to format dates and take advantage of Rails DATE_FORMATS hash to store custom date formats.
Tags: active-support views
-
136
jQuery
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
-
138
I18n
Internationalization was one of the big additions to Rails 2.2. We'll show you how to start using it in this episode.
-
165
Edit Multiple Other translations:
Select multiple records with checkboxes and edit them all on one form. Find out how to use virtual attributes to update values relatively.
-
174
Pagination With AJAX
Use jQuery to add unobtrusive JavaScript links to a paginated list.
-
178
Seven Security Tips Other translations:
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
-
184
Formtastic Part 1 Other translations:
Formtastic provides a concise way to generate form views. In the first part of this two-part series we use it to generate a simple form and a more complex, customised one.
-
189
Embedded Association
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
-
185
Formtastic Part 2 Other translations:
In this episode we cover some of Formtastic's more advanced features, including its handling of many-to-many relationships, required fields and styling.
-
196
Nested Model Form Part 1 Other translations:
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
-
197
Nested Model Form Part 2 Other translations:
Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.
-
198
Edit Multiple Individually Other translations:
se checkboxes to edit multiple records in one form, where each one has an individual set of form fields.
-
199
Mobile Devices Other translations:
In this episode we change the look and behavior of a Rails app on mobile devices and use jQTouch to build a native-looking interface.
Tags: views controllers plugins
-
204
XSS Protection in Rails 3
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.
