Showing 3 videos tagged with plugin

Creating a Simple Plugin

# Create the plugin ./script/generate plugin flash_helper # init.rb require File.dirname(__FILE__) + '/lib/flash_helper' ActionView::Base.send(:include, FlashHelper) # flash_helper.rb module FlashHelper def display_flash(flash) ret = [] flash.each do |key, value| ret << content_tag(:div, value, :id => "flash_#{key}") end return ret.join("\n") end end # application.html.erb <%= display_flash(flash) %> 2 Comments Sort by Community Page... View More

SD Ruby - Episode 005: ARTS Plugin

Kevin Clark demos his new Rails plugin, ARTS, which allows you to test your RJS templates.
Tags:

Railscast - Episode 33: Making a Plugin

00:07:55 railscasts.com
You can sometimes remove a lot of duplication by generating methods dynamic. In this episode I will show you how to create a plugin which does exactly that.