Archive for 'VIew Related Plugins'

auto_complete Plugin and Virtual Attributes

The way you normally specify which fields in your form should auto complete, is to add a declaration within your controller that looks like: However, this only works for actual fields that exist in your database, not for virtual attributes. So :field_name cannot be a virtual attribute, but should be a real existing database field. […]

will_paginate plugin – Installing and Sample Code

Installing the will_paginate Plugin You can install this plugin as a gem but in this example, I’ll install it as a plugin so it can travel with the rails application. This disadvantage of installing it as a plugin instead of a gem is that you’ll need to install it as a plugin for each rails […]