--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Saturday 12 May 2012 at 5:53 AM, Lauro Caetano wrote:
--
On Saturday 12 May 2012 at 5:53 AM, Lauro Caetano wrote:
--
Thanks for your help Dheeraj, but I'm trying to do something like Responders.Responders has a respond_to :html in controllers, that is used in each action call to respond_with.The thing is: call a specific method that is located inside my gem for every action call. This method should be able to modify the attribute that was passed.I have no idea to make this work.
I'm trying to do this:class ApplicationController < ActionController::Baseinclude MyGemendclass TasksController < ApplicationControllerinjector_to :taskdef showrespond_with(@task)endend