apotonick/apotomo — pull request #71 by Nerian (2012-03-09 17:49:02+00:00)
Title: Add redirect_to(url) helper

Add redirect_to(url) helper

```ruby
def submit(evt)
@task = Task.new(evt[:task])
@course = Course.find(evt[:course])
@course.tasks << @task
if @course.save
@message = "Task #{@task.title} saved"
@task = Task.new
redirect_to course_path(@course.id)
else
update :view => :display
end
end