I have 2 controllers (booking
and taxi
). I am going to call a method of taxi
in create method of booking
.
so i saw this, and used this line
class BookingsController < ApplicationController
def create
redirect_to url_for(:controller => :taxis, :action => :compute) and return
end
end
i add and return
because i faced with erorr
AbstractController::DoubleRenderError
and compute method is a simple puts
def compute
puts "Address is @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
end
the problem is, when i run it, i face with this message
Redirected to http://agile-system-lashkarara.c9users.io:8081/compute
but it puts nothing in console