apotonick/apotomo — Issue #69: Pass Instance Variable to View
Author: regdog
Created: 2012-03-05 10:20:05+00:00
State: open

Hi Guru,

I am new to Apotomo. In my use case, I want to change content dynamically after submit a new form. The question is how to pass the newly created instance 'task' to the view!

def submit(evt)
task = Task.create(evt[:checkin])
replace "#d_task_post", :view => :post_task
end

Thanks!