Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README
init.rb

README

A plugin expressly made for the purposes of being evil with view rendering.

Makes it easy to render views for when you do things on facebook API like sending notifications in an after_save.

class User < ActiveRecord::Base

  include EvilActionView
  after_save :notify_user

  def notify_user
    send_notification(evil.render :partial => "user_notification", :locals => self.attributes)
  end
end


Also, I added a janky part controller thing.  It works, but its not very good right now
Something went wrong with that request. Please try again.