Episodes tagged with “forms”
-
16
Virtual Attributes
Keep your forms flexible by adding virtual attributes to your model. This powerful technique allows you to create form fields which may not directly relate to the database.
Tags: active-record forms
-
17
HABTM Checkboxes
Create a list of checkboxes for easily managing a HABTM relationship.
-
25
SQL Injection Other translations:
Attacks via SQL injection are one of the most common ways to attack web applications. Learn how to avoid being a victim of it.
Tags: security active-record forms
-
26
Hackers Love Mass Assignment
If you're using mass assigment you're giving complete control to your models to your users. Learn how to protect them in this episode.
Tags: security active-record forms
-
32
Time in Text Field
Updating time fields via a series of dropdowns isn't the most elegant way to enter date and time information. Find out how to allow your users to enter dates and time in a text field instead.
Tags: active-record forms
-
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.
-
167
More on Virtual Attributes
Make use of virtual attributes and callbacks to implement tagging in a blogging application.
-
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.
-
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.
